Fix post clone DB usage

This commit is contained in:
Cyberboss
2018-08-15 14:51:29 -04:00
parent 62129a56b8
commit 4cc70f2c7f
@@ -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);