mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-11 01:44:50 +08:00
removed debug delays
This commit is contained in:
parent
b1bf8c3793
commit
955c49b324
2 changed files with 6 additions and 10 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue