summary refs log tree commit diff
path: root/src/db/db.js
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-06-03 01:01:40 +0200
committerRory& <root@rory.gay>2025-06-03 01:01:40 +0200
commit6f3f08ed340e59a62a2d0428a5c32f99551ef1ce (patch)
treeff77390b1d3ea61414c14c94ac1fa2a05030879b /src/db/db.js
parentMore alarm testing (diff)
downloadnodejs-final-assignment-6f3f08ed340e59a62a2d0428a5c32f99551ef1ce.tar.xz
Fix performance issues, add fake user bot to test client, more testing
Diffstat (limited to 'src/db/db.js')
-rw-r--r--src/db/db.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/db.js b/src/db/db.js

index 2035731..9cbba80 100644 --- a/src/db/db.js +++ b/src/db/db.js
@@ -7,7 +7,7 @@ export async function initDb() { process.env['DATABASE_SECRET_PATH'] ); - if (process.env['LOG_QUERIES']) mongoose.set('debug', true); + if (process.env['LOG_QUERIES'] === 'true') mongoose.set('debug', true); try { const res = await connect(connectionString);