mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-10 21:53:13 +08:00
removed unused args
This commit is contained in:
parent
96dc1783e5
commit
596673af1d
1 changed files with 2 additions and 2 deletions
|
@ -2,12 +2,12 @@ const ConfigDAO = require("../../dao/config");
|
|||
const { validateConfig } = require("../../handlers/validation");
|
||||
|
||||
class ConfigController {
|
||||
static async getConfig(req, res, next) {
|
||||
static async getConfig(req, res) {
|
||||
const { uid } = req.decodedToken;
|
||||
let config = await ConfigDAO.getConfig(uid);
|
||||
return res.status(200).json(config);
|
||||
}
|
||||
static async saveConfig(req, res, next) {
|
||||
static async saveConfig(req, res) {
|
||||
const { config } = req.body;
|
||||
const { uid } = req.decodedToken;
|
||||
validateConfig(config);
|
||||
|
|
Loading…
Reference in a new issue