refactor(config): connect mongoose in dbconfig

This commit is contained in:
parent f01949b983
commit e94c070300
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -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);