The last push before release (#2696)
Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
parent
2227dc354b
commit
033dc61d54
15 changed files with 681 additions and 433 deletions
|
@ -130,7 +130,7 @@ public class VersionUpdaterService : IVersionUpdaterService
|
|||
{
|
||||
if (update == null) return;
|
||||
|
||||
var updateVersion = new Version(update.CurrentVersion);
|
||||
var updateVersion = new Version(update.UpdateVersion);
|
||||
|
||||
if (BuildInfo.Version < updateVersion)
|
||||
{
|
||||
|
@ -138,12 +138,6 @@ public class VersionUpdaterService : IVersionUpdaterService
|
|||
await _eventHub.SendMessageAsync(MessageFactory.UpdateAvailable, MessageFactory.UpdateVersionEvent(update),
|
||||
true);
|
||||
}
|
||||
else if (Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == Environments.Development)
|
||||
{
|
||||
_logger.LogWarning("Server is up to date. Current: {CurrentVersion}", BuildInfo.Version);
|
||||
await _eventHub.SendMessageAsync(MessageFactory.UpdateAvailable, MessageFactory.UpdateVersionEvent(update),
|
||||
true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue