A compile job should always exist

This commit is contained in:
Jordan Brown
2018-09-16 22:17:03 -04:00
parent e370136890
commit 53af76cab0
@@ -133,11 +133,7 @@ namespace Tgstation.Server.Host.Components.Compiler
.Include(x => x.Job).ThenInclude(x => x.StartedBy)
.Include(x => x.RevisionInformation).ThenInclude(x => x.PrimaryTestMerge).ThenInclude(x => x.MergedBy)
.Include(x => x.RevisionInformation).ThenInclude(x => x.ActiveTestMerges).ThenInclude(x => x.TestMerge).ThenInclude(x => x.MergedBy)
.FirstOrDefaultAsync(cancellationToken).ConfigureAwait(false)).ConfigureAwait(false); //can't wait to see that query
if (finalCompileJob == null)
//lol git fucked
return;
.FirstAsync(cancellationToken).ConfigureAwait(false)).ConfigureAwait(false); //can't wait to see that query
var newProvider = await FromCompileJob(finalCompileJob, cancellationToken).ConfigureAwait(false);
if (newProvider == null)