Fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user