diff --git a/index.js b/index.js index 9f130e3..79f84b7 100644 --- a/index.js +++ b/index.js @@ -202,7 +202,7 @@ DB.getDB.then((DB)=>{ app.post('/token/', sessionChecker, async (req, res) => { const profileid = getProfileId(req); - let token = await DB.getProfile(req.body.token); + let token = req.body.token DB.setProfileToken(profileid, token); return res.json({ status: "ok"