mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-30 10:58:07 +03:00
Stabilise sync-database by always waiting for monk.
This commit is contained in:
@@ -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",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user