diff --git a/backend/api/controllers/config.js b/backend/api/controllers/config.js index 149062633..5105633ed 100644 --- a/backend/api/controllers/config.js +++ b/backend/api/controllers/config.js @@ -4,11 +4,9 @@ const { validateConfig } = require("../../handlers/validation"); class ConfigController { static async getConfig(req, res, next) { try { - return setTimeout(async () => { - const { uid } = req.decodedToken; - let config = await ConfigDAO.getConfig(uid); - return res.status(200).json(config); - }, 3000); + const { uid } = req.decodedToken; + let config = await ConfigDAO.getConfig(uid); + return res.status(200).json(config); } catch (e) { return next(e); } diff --git a/backend/api/controllers/result.js b/backend/api/controllers/result.js index 21c0c363a..06d88d41c 100644 --- a/backend/api/controllers/result.js +++ b/backend/api/controllers/result.js @@ -34,11 +34,9 @@ try { class ResultController { static async getResults(req, res, next) { try { - return setTimeout(async () => { - const { uid } = req.decodedToken; - const results = await ResultDAO.getResults(uid); - return res.status(200).json(results); - }, 3000); + const { uid } = req.decodedToken; + const results = await ResultDAO.getResults(uid); + return res.status(200).json(results); } catch (e) { next(e); }