From 52514e9e68122fa3e878fb3f2d200d449ff81ad5 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Sat, 23 Apr 2022 14:51:58 +0200 Subject: [PATCH] Renamed id to asuraId --- src/server/tmdb.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/server/tmdb.js b/src/server/tmdb.js index d725350..55e6087 100644 --- a/src/server/tmdb.js +++ b/src/server/tmdb.js @@ -466,6 +466,8 @@ function getUsers () { userRows.forEach((userRow, index) => { let user = results=JSON.parse(JSON.stringify(userRow)) user.isManager = user.isManager == 1; + user.asuraId = user.id; + user.id = undefined; users.push(user); }); resolve(users); @@ -485,6 +487,8 @@ function getUserByGoogleId(googleId) { reject("No such user exists"); } users[0].isManager = users[0].isManager == 1; + users[0].asuraId = users[0].id; + users[0].id = undefined; resolve(users[0]); } }); @@ -503,6 +507,8 @@ function getUserByEmail(email) { return; } users[0].isManager = users[0].isManager == 1; + users[0].asuraId = users[0].id; + users[0].id = undefined; resolve(users[0]); } });