Skip to content

Commit 627c0b7

Browse files
authored
Merge pull request #21 from aMediocreDad/fix-db-compaction
Fix _packNedb hanging
2 parents 89c72ef + a0685bc commit 627c0b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

commands/package.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,7 @@ export function getCommand() {
550550
// Compact the database
551551
db.stopAutocompaction();
552552
await new Promise(resolve => {
553-
db.once("compaction.done", resolve);
554-
db.compactDatafile();
553+
db.compactDatafile(resolve);
555554
});
556555
}
557556

0 commit comments

Comments
 (0)