mirror of
https://github.com/maierfelix/POGOserver.git
synced 2026-09-30 13:27:36 -05:00
strict equality and double quotes
This commit is contained in:
@@ -77,7 +77,7 @@ class Player {
|
||||
updateByObject(obj) {
|
||||
for (let key in obj) {
|
||||
if (this.hasOwnProperty(key)) {
|
||||
if (key == 'send_marketing_emails' || key == 'send_push_notifications') {
|
||||
if (key === "send_marketing_emails" || key === "send_push_notifications") {
|
||||
this[key] = !!obj[key];
|
||||
} else {
|
||||
this[key] = obj[key];
|
||||
|
||||
Reference in New Issue
Block a user