mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-28 23:52:36 +01:00
Make DreamMakerController use the PostCompile system
This commit is contained in:
@@ -189,10 +189,9 @@ namespace Tgstation.Server.Host.Controllers
|
||||
|
||||
compileJob.Job = job;
|
||||
|
||||
databaseContext.CompileJobs.Add(compileJob);
|
||||
await databaseContext.Save(cancellationToken).ConfigureAwait(false);
|
||||
databaseContext.CompileJobs.Add(compileJob); //will be saved by job context
|
||||
|
||||
await instance.CompileJobConsumer.LoadCompileJob(compileJob, cancellationToken).ConfigureAwait(false);
|
||||
job.PostComplete = ct => instance.CompileJobConsumer.LoadCompileJob(compileJob, ct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user