aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/db
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-10-21 07:10:20 +0300
committerGravatar Vitaly Takmazov2024-10-21 07:10:20 +0300
commitdd962bcb1ebcbff9dd28ada9156786b9a9ed92a6 (patch)
tree167b3b30a4eea520c7fbd7da6bb15c2847ecc3cb /vnext/server/db
parentca6c011351afe7c3be5b1ab8b5cf87db10514263 (diff)
vnext: Use actual express app for tests
* use `debug` for sequelize logging
Diffstat (limited to 'vnext/server/db')
-rw-r--r--vnext/server/db/index.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/vnext/server/db/index.js b/vnext/server/db/index.js
index c6c9ca24..9c9e564b 100644
--- a/vnext/server/db/index.js
+++ b/vnext/server/db/index.js
@@ -1,5 +1,10 @@
+import debug from 'debug'
+var log = debug('db')
+
import { Sequelize } from 'sequelize'
-const db = new Sequelize(process.env.DATABASE_URL)
+const db = new Sequelize(process.env.DATABASE_URL, {
+ logging: (...msg) => log(msg)
+})
export default db