mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 00:22:40 +01:00
Merge pull request #605 from tgstation/Cyberboss-patch-1
Fix post clone job failure
This commit is contained in:
@@ -175,7 +175,12 @@ namespace Tgstation.Server.Host.Controllers
|
||||
if (repos == null)
|
||||
throw new JobException("Filesystem conflict while cloning repository!");
|
||||
var db = serviceProvider.GetRequiredService<IDatabaseContext>();
|
||||
if (await PopulateApi(api, repos, db, Instance, ct).ConfigureAwait(false))
|
||||
var instance = new Models.Instance
|
||||
{
|
||||
Id = Instance.Id
|
||||
};
|
||||
db.Instances.Attach(instance);
|
||||
if (await PopulateApi(api, repos, db, instance, ct).ConfigureAwait(false))
|
||||
await db.Save(ct).ConfigureAwait(false);
|
||||
}
|
||||
}, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
Reference in New Issue
Block a user