small improvements, bug fixes, ocd formatting,
This commit is contained in:
2024-12-26 03:13:35 -07:00
parent fa9208940a
commit d999db53ae
28 changed files with 178 additions and 181 deletions

View File

@@ -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;
}
}

View File

@@ -1,4 +1,4 @@
const router = require('express').Router();
const router = require("express").Router();
const { validate } = require("../validators");

View File

@@ -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();