From 955c49b3245d8585039a5214ad08d1e3566c5ebe Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 20 Jan 2022 00:31:03 +0100 Subject: [PATCH] removed debug delays --- backend/api/controllers/config.js | 8 +++----- backend/api/controllers/result.js | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) 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); }