diff --git a/src/app.ts b/src/app.ts index 439fff4..9c74638 100644 --- a/src/app.ts +++ b/src/app.ts @@ -17,7 +17,7 @@ const init = async () => { extended: true })) - await mongoose.connect(`mongodb+srv://${process.env.MONGO_USER}:${process.env.MONGO_PASS}@${process.env.MONGO_URI}/Images?retryWrites=true&w=majority`, { + await mongoose.connect(`mongodb://${process.env.MONGO_URI}/Images`, { useNewUrlParser: true, useUnifiedTopology: true }) @@ -50,4 +50,4 @@ init().then((app: Application) => { }).catch((err) => { console.error(err) process.exit(-1) -}) \ No newline at end of file +})