mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
bin/rebuildPad.js: Close the database when done
This prevents loss of data due to unflushed writes.
This commit is contained in:
parent
809dc6e367
commit
bf209ddad3
1 changed files with 1 additions and 0 deletions
|
@ -91,5 +91,6 @@ const newPadId = process.argv[4] || `${padId}-rebuilt`;
|
||||||
console.log(`Created: Source Pad: pad:${newPadId}`);
|
console.log(`Created: Source Pad: pad:${newPadId}`);
|
||||||
await newPad.saveToDatabase();
|
await newPad.saveToDatabase();
|
||||||
|
|
||||||
|
await db.shutdown();
|
||||||
console.info('finished');
|
console.info('finished');
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in a new issue