This commit is contained in:
Swift
2024-02-23 11:03:28 +03:30
parent 873cd439bd
commit 4c60ef1c1b
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -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