From 62c68005fc9f8d1849b7d806acc679075909c6a5 Mon Sep 17 00:00:00 2001 From: aeroreyna Date: Thu, 24 Mar 2022 23:07:37 -0700 Subject: [PATCH] fix set token --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"