refactor(config): connect mongoose in dbconfig
This commit is contained in:
parent
f01949b983
commit
e94c070300
@ -14,4 +14,4 @@ export const olduri =
|
||||
? `mongodb://127.0.0.1/rockfic_old?authSource=admin`
|
||||
: `mongodb://${process.env.DBUSER}:${process.env.DBPASS}@127.0.0.1:27017/rockfic_old?authSource=admin`;
|
||||
|
||||
await mongoose.connect(uri);
|
||||
mongoose.connect(uri);
|
||||
|
Loading…
Reference in New Issue
Block a user