mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-30 02:48:01 +03:00
fix: make sync-database exit 1 on fail
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user