From f66684433bac3a756336861731cbff68ed4946f2 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 2 Jan 2019 16:56:34 -0800 Subject: initialize balance --- index.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'index.js') 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 -- cgit v1.2.3