mirror of
https://github.com/maierfelix/POGOserver.git
synced 2026-07-20 01:01:34 -05:00
strict equality and double quotes
This commit is contained in:
parent
ca23f3524e
commit
aa357c8c4c
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user