diff --git a/api/src/db.js b/api/src/db.js index d57f89a..bedfa47 100644 --- a/api/src/db.js +++ b/api/src/db.js @@ -7,14 +7,14 @@ module.exports = { if (mconn !== null) return mconn const dbhost = process.env.DB_HOST || 'db' - mconn = new MongoClient('mongodb://'+dbhost+':27017', { + mconn = new MongoClient(`mongodb://${dbhost}:27017`, { useUnifiedTopology: true, useNewUrlParser: true }) return mconn }, get: () => { - mdb = mconn.db(process.env.DB_NAME || 'activitypub') + mdb = mconn.db(process.env.DB_NAME || 'fedilove') return mdb }, table: {