From 05ac54f58238b56534e3d2bd638af0613834a06d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 19 Mar 2020 22:57:04 -0700 Subject: update readme --- routes/users.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'routes') diff --git a/routes/users.js b/routes/users.js index d65c888f..368cca6c 100644 --- a/routes/users.js +++ b/routes/users.js @@ -83,7 +83,7 @@ app.post("/register", async (req, res) => { GB: "GBP" }; - if (ip.startsWith("127") || ip.startsWith("192")) user.currency = "CAD"; + if (!config.ipstack || ip.startsWith("127") || ip.startsWith("192")) user.currency = "CAD"; else { let info = await axios.get( `http://api.ipstack.com/${ip}?access_key=${config.ipstack}` @@ -262,10 +262,6 @@ app.post("/facebookLogin", async (req, res) => { let friends = (await axios.get( `${fb}/${userID}/friends?access_token=${accessToken}` )).data.data; - if (friends.find(f => f.id === config.facebook.specialFriend)) { - user.friend = true; - user.limit = 200; - } await user.save(); addresses[user.address] = user.username; addresses[user.liquid] = user.username; -- cgit v1.2.3