bin/rebuildPad.js: Close the database when done
This prevents loss of data due to unflushed writes.pull/4656/head
parent
809dc6e367
commit
bf209ddad3
|
@ -91,5 +91,6 @@ const newPadId = process.argv[4] || `${padId}-rebuilt`;
|
|||
console.log(`Created: Source Pad: pad:${newPadId}`);
|
||||
await newPad.saveToDatabase();
|
||||
|
||||
await db.shutdown();
|
||||
console.info('finished');
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue