mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-03-21 17:24:28 -05:00
await Mongo connection
This commit is contained in:
parent
92bf38c60f
commit
3183e45fb2
|
|
@ -14,6 +14,8 @@ async function connect() {
|
|||
accountServerDBConnection.removeAllListeners();
|
||||
});
|
||||
|
||||
await accountServerDBConnection.asPromise();
|
||||
|
||||
PNID = accountServerDBConnection.model('PNID', PNIDSchema);
|
||||
|
||||
module.exports.PNID = PNID;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user