mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 21:46:52 +01:00
Fix post clone DB usage
This commit is contained in:
@@ -163,7 +163,9 @@ namespace Tgstation.Server.Host.Controllers
|
||||
{
|
||||
if (repos == null)
|
||||
throw new Exception("Filesystem conflict while cloning repository!");
|
||||
await PopulateApi(api, repos, DatabaseContext, Instance, null, null, cancellationToken).ConfigureAwait(false);
|
||||
var db = serviceProvider.GetRequiredService<IDatabaseContext>();
|
||||
if (await PopulateApi(api, repos, db, Instance, null, null, cancellationToken).ConfigureAwait(false))
|
||||
await db.Save(cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
}, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user