fix
This commit is contained in:
@@ -12,6 +12,10 @@ const ComplaintSchema = mongoose.Schema({
|
||||
receptionCode: String,
|
||||
caption: String,
|
||||
callType: Boolean,
|
||||
type:{
|
||||
type:Number,
|
||||
default:0
|
||||
},
|
||||
read: { type: Boolean, default: false },
|
||||
complete: { type: Boolean, default: false },
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ const serialChecker = (serial, type = 'guaranteeSerial', g = 1) => {
|
||||
|
||||
for (const row of exelFile) {
|
||||
|
||||
// eslint-disable-next-line eqeqeq
|
||||
if ((row[1].toString()).toLowerCase() == lowerSerial) {
|
||||
resolve(row[2]);
|
||||
return; // Serial found, exit loop
|
||||
|
||||
Reference in New Issue
Block a user