Skip to content

Commit 0ac3a98

Browse files
committed
close pool when closing jsreport and add common store tests
1 parent 73129a7 commit 0ac3a98

4 files changed

Lines changed: 1623 additions & 529 deletions

File tree

lib/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ module.exports = function (reporter, definition) {
1818
}
1919
})
2020
}))
21+
22+
reporter.closeListeners.add('postgres', this, () => db.$pool.end())
2123
}

0 commit comments

Comments
 (0)