mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-08-28 11:36:53 -05:00
await Mongo connection
This commit is contained in:
@@ -14,6 +14,8 @@ async function connect() {
|
||||
accountServerDBConnection.removeAllListeners();
|
||||
});
|
||||
|
||||
await accountServerDBConnection.asPromise();
|
||||
|
||||
PNID = accountServerDBConnection.model('PNID', PNIDSchema);
|
||||
|
||||
module.exports.PNID = PNID;
|
||||
|
||||
Reference in New Issue
Block a user