editorconfig

This commit is contained in:
2025-01-08 06:55:30 -07:00
parent 481d6fd48d
commit f75988fa3a
28 changed files with 1364 additions and 1339 deletions

View File

@@ -7,15 +7,15 @@ const typedefs = require("../typedefs");
* @param {typedefs.Res} res
*/
const __controller_func = async (req, res) => {
try {
try {
} catch (error) {
res.status(500).send({ message: "Internal Server Error" });
logger.error("__controller_func", { error });
return;
}
} catch (error) {
res.status(500).send({ message: "Internal Server Error" });
logger.error("__controller_func", { error });
return;
}
}
module.exports = {
__controller_func
__controller_func
};

View File

@@ -3,19 +3,19 @@ const { body, header, param, query } = require("express-validator");
const typedefs = require("../typedefs");
/**
* @param {typedefs.Req} req
* @param {typedefs.Res} res
* @param {typedefs.Next} next
* @param {typedefs.Req} req
* @param {typedefs.Res} res
* @param {typedefs.Next} next
*/
const __validator_func = async (req, res, next) => {
await body("field_name")
.notEmpty()
.withMessage("field_name not defined in body")
.run(req);
await body("field_name")
.notEmpty()
.withMessage("field_name not defined in body")
.run(req);
next();
next();
}
module.exports = {
__validator_func
__validator_func
}