mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 06:04:05 +00:00
back
small improvements, bug fixes, ocd formatting,
This commit is contained in:
@@ -11,7 +11,7 @@ const __controller_func = async (req, res) => {
|
||||
|
||||
} catch (error) {
|
||||
res.sendStatus(500);
|
||||
logger.error('__controller_func', { error });
|
||||
logger.error("__controller_func", { error });
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const router = require('express').Router();
|
||||
const router = require("express").Router();
|
||||
|
||||
const { validate } = require("../validators");
|
||||
|
||||
|
||||
@@ -8,9 +8,9 @@ const typedefs = require("../typedefs");
|
||||
* @param {typedefs.Next} next
|
||||
*/
|
||||
const __validator_func = async (req, res, next) => {
|
||||
await body('field_name')
|
||||
await body("field_name")
|
||||
.notEmpty()
|
||||
.withMessage('field_name not defined in body')
|
||||
.withMessage("field_name not defined in body")
|
||||
.run(req);
|
||||
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user