This commit is contained in:
Swift
2024-01-22 21:05:17 +03:30
parent bf05f3c0c8
commit ec533f721e
9 changed files with 13 additions and 295 deletions
+4 -1
View File
@@ -47,7 +47,10 @@ module.exports.addExel = [
module.exports.getAllExels = [
(req, res) => {
const type = req.query?.type
if (!type) return res500(res, 'choose type')
if (!type) {
res500(res, 'choose type')
console.log("dfd")
}
const validValues = ['guaranteeSerial', 'orginality']
if (!validValues.includes(type)) return res500(res, 'choose type')
const path = type === 'guaranteeSerial' ? guaranteeSerialsPath : productSerialsPath