fix: --watch mode no longer working

closes #5867
This commit is contained in:
Tom Moor
2023-09-22 09:01:51 -04:00
parent 76862b626b
commit 3f11b014c5

View File

@@ -1,5 +1,7 @@
import { sequelize } from "@server/storage/database";
module.exports = async function () {
await sequelize.close();
module.exports = async function (opts) {
if (!opts.watch && !opts.watchAll) {
await sequelize.close();
}
};