Stabilise sync-database by always waiting for monk.

This commit is contained in:
zkldi
2021-11-27 10:41:42 +00:00
parent 8d61da8f87
commit 20f198ace3
@@ -238,6 +238,9 @@ async function SynchroniseDBWithSeeds() {
fs.rmSync(seedsDir, { recursive: true, force: true });
// Wait for mongo to connect first.
await monkDB.then(() => void 0);
execSync(`git clone https://github.com/TNG-dev/tachi-database-seeds --depth=1 ${seedsDir}`, {
stdio: "inherit",
});