Fix PostComplete jobs

This commit is contained in:
Jordan Brown
2018-09-16 22:32:02 -04:00
parent 53af76cab0
commit 8fb0f3c357
+1 -1
View File
@@ -114,7 +114,7 @@ namespace Tgstation.Server.Host.Core
await databaseContext.Save(default).ConfigureAwait(false);
bool JobErroredOrCancelled() => job.ExceptionDetails != null || job.Cancelled.Value;
bool JobErroredOrCancelled() => job.ExceptionDetails != null || job.Cancelled == true;
//ok so, now it's time for the post commit step if it exists
if (!JobErroredOrCancelled() && job.PostComplete != null)