aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2019-01-02 16:56:34 -0800
committerAdam Soltys <[email protected]>2019-02-05 20:53:45 -0800
commitf66684433bac3a756336861731cbff68ed4946f2 (patch)
treeba1c0140f36e170e10552746b5114d3a02a26e58 /index.js
parentfea5db65026c883bc36199d53c233faaf1021c11 (diff)
downloadcoinos-server-f66684433bac3a756336861731cbff68ed4946f2.tar.gz
coinos-server-f66684433bac3a756336861731cbff68ed4946f2.zip
initialize balance
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.js b/index.js
index c63e764c..5f3e8228 100644
--- a/index.js
+++ b/index.js
@@ -564,6 +564,8 @@ const l = console.log
user.fbtoken = accessToken
user.address = (await lna.newAddress({ type: 1 }, lna.meta)).address
user.password = await bcrypt.hash(accessToken, 1)
+ user.balance = 0
+ user.pending = 0
let friends = (await fb.api(`/${userID}/friends?access_token=${accessToken}`)).data
if (friends.find(f => f.id === config.facebook.specialFriend)) {
user.friend = true