Actualiser modules/utils.js
This commit is contained in:
parent
3a6f5b76fb
commit
c531f2c82c
@ -25,6 +25,11 @@ function sendValidationError(req, res, zodResult, type, path, errorConfig) {
|
|||||||
return res.status(errorConfig.status || 400).json(response)
|
return res.status(errorConfig.status || 400).json(response)
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
function isTrueFromDotEnv(key) {
|
||||||
sendValidationError
|
return (process.env[key] || "").trim().toLowerCase() === "true"
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
sendValidationError,
|
||||||
|
isTrueFromDotEnv
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user