mirror of
https://github.com/maierfelix/POGOserver.git
synced 2026-07-05 17:50:57 -05:00
Solve error on some node versions!
Worked for me! This solves the following (frequent) error: `TypeError: _this2.print is not a function` on Windows.
This commit is contained in:
parent
1d0aad00ed
commit
26b9e9b197
|
|
@ -125,7 +125,7 @@ export function playerIsRegistered(email) {
|
|||
export function registerPlayer(player) {
|
||||
return new Promise((resolve) => {
|
||||
this.db.query(`INSERT INTO ${CFG.MYSQL_USERS_TABLE} SET email=?, username=? `, [player.email, player.username], (e, res) => {
|
||||
if (e) return this.print(e, 31);
|
||||
if (e) return print(e, 31);
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
|
|
@ -177,4 +177,4 @@ export function kickPlayer(name) {
|
|||
}
|
||||
else print(`Failed to kick ${name} from the server!`, 31);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user