stop inserting and changing deleted unlock incidents
This commit is contained in:
@@ -126,7 +126,6 @@ const insertUnlockedIncidents = (incidents) => {
|
||||
bookingStart: start,
|
||||
bookingEnd: end,
|
||||
unlockTimestamp,
|
||||
incidentLevel,
|
||||
},
|
||||
defaults: {...incidentForDB},
|
||||
}));
|
||||
@@ -198,7 +197,7 @@ const setUnlockedIncidentsLevel = (incidents) => {
|
||||
const incidentsWithLevel = [];
|
||||
|
||||
incidents.forEach((incident) => {
|
||||
const memberLastIncident = membersLastIncident[incident.memberId];
|
||||
const memberLastIncident = Object.assign({}, membersLastIncident[incident.memberId]);
|
||||
|
||||
const formattedIncident = {
|
||||
reservation: incident.reservation,
|
||||
|
||||
Reference in New Issue
Block a user