bin/rebuildPad.js: Close the database when done

This prevents loss of data due to unflushed writes.
pull/4656/head
Richard Hansen 2021-01-29 17:19:40 -05:00 committed by John McLear
parent 809dc6e367
commit bf209ddad3
1 changed files with 1 additions and 0 deletions

View File

@ -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');
})();