fix: make sync-database exit 1 on fail

This commit is contained in:
zkldi
2022-05-02 19:02:03 +01:00
parent ee9cf8423c
commit 8f86acaca5
+3 -1
View File
@@ -373,5 +373,7 @@ async function SynchroniseDBWithSeeds() {
}
if (require.main === module) {
SynchroniseDBWithSeeds().then(() => process.exit(0));
SynchroniseDBWithSeeds()
.then(() => process.exit(0))
.catch(() => process.exit(1));
}