From fb4075a0891a1a2c9d6fe6bdbb3975295ccd4658 Mon Sep 17 00:00:00 2001 From: Ashish Raj Date: Sun, 10 Nov 2024 22:26:25 +1300 Subject: [PATCH] Update db uri --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index dcbbd8e..813eec5 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,7 @@ const originUrl = process.env.CLIENT_URL console.log(`Development mode: ${isDev}`); console.log(`Origin URL: ${originUrl}`); -const mongoUri = isDev ? "mongodb://localhost/iptvnator" : process.env.MONGO_URI || ""; +const mongoUri = isDev ? "mongodb://localhost:27017/iptvnator" : process.env.MONGO_URI || ""; const dbName = isDev ? "iptvnator" : process.env.MONGO_DB_NAME || ""; const collectionName = isDev ? "playlists" : process.env.MONGO_COLLECTION_NAME || "";