do not re-create deleted incidents
This commit is contained in:
@@ -51,6 +51,7 @@ const insertUnscheduledIncidents = (incidents) => {
|
||||
totalChargeFee,
|
||||
unlockTimestamp,
|
||||
lockTimestamp,
|
||||
deleted: false
|
||||
};
|
||||
|
||||
asyncJobs.push(db.unscheduledIncident.findOrCreate({
|
||||
@@ -62,7 +63,6 @@ const insertUnscheduledIncidents = (incidents) => {
|
||||
bookingEnd: end,
|
||||
unlockTimestamp,
|
||||
lockTimestamp,
|
||||
deleted: false
|
||||
},
|
||||
defaults: {...incidentForDB},
|
||||
}));
|
||||
@@ -95,6 +95,7 @@ const insertUnlockedIncidents = (incidents) => {
|
||||
unlockTimestamp,
|
||||
incidentLevel,
|
||||
incidentLevelPrice,
|
||||
deleted: false
|
||||
};
|
||||
|
||||
asyncJobs.push(db.unlockedIncident.findOrCreate({
|
||||
@@ -106,7 +107,6 @@ const insertUnlockedIncidents = (incidents) => {
|
||||
bookingEnd: end,
|
||||
unlockTimestamp,
|
||||
incidentLevel,
|
||||
deleted: false
|
||||
},
|
||||
defaults: {...incidentForDB},
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user