diff options
| author | Adam Soltys <[email protected]> | 2019-01-02 16:56:34 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2019-02-05 20:53:45 -0800 |
| commit | f66684433bac3a756336861731cbff68ed4946f2 (patch) | |
| tree | ba1c0140f36e170e10552746b5114d3a02a26e58 | |
| parent | fea5db65026c883bc36199d53c233faaf1021c11 (diff) | |
| download | coinos-server-f66684433bac3a756336861731cbff68ed4946f2.tar.gz coinos-server-f66684433bac3a756336861731cbff68ed4946f2.zip | |
initialize balance
| -rw-r--r-- | index.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |
