aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2019-01-07 05:33:29 +0000
committerAdam Soltys <[email protected]>2019-02-05 20:53:45 -0800
commitf3d45b165d38777b88fc9ba7ec7d24ec94bb4f54 (patch)
treeea711e829729d96a176d3be2692cebaa9f6decc8 /index.js
parent248fa476eba281c4b96cc18bbab61358dea45977 (diff)
downloadcoinos-server-f3d45b165d38777b88fc9ba7ec7d24ec94bb4f54.tar.gz
coinos-server-f3d45b165d38777b88fc9ba7ec7d24ec94bb4f54.zip
fix parentheses
Diffstat (limited to 'index.js')
-rw-r--r--index.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/index.js b/index.js
index 4d5b68fa..ceacaa0c 100644
--- a/index.js
+++ b/index.js
@@ -186,11 +186,12 @@ const l = console.log
let confirmed = false
- if (user.friend)
+ if (user.friend) {
user.balance += o.value
confirmed = true
- else
+ } else {
user.pending += o.value
+ }
await user.save()
socket.to(sids[user.username]).emit('user', user)
@@ -572,7 +573,7 @@ const l = console.log
let friends = (await fb.api(`/${userID}/friends?access_token=${accessToken}`)).data
if (friends.find(f => f.id === config.facebook.specialFriend)) {
user.friend = true
- user.limit = 100
+ user.limit = 200
}
await user.save()
addresses[user.address] = user.username