await Mongo connection

This commit is contained in:
Jonathan Barrow 2022-06-20 17:13:27 -04:00
parent 92bf38c60f
commit 3183e45fb2

View File

@ -14,6 +14,8 @@ async function connect() {
accountServerDBConnection.removeAllListeners();
});
await accountServerDBConnection.asPromise();
PNID = accountServerDBConnection.model('PNID', PNIDSchema);
module.exports.PNID = PNID;