disable corruption repair

This commit is contained in:
Marks Polakovs 2020-03-23 14:59:38 +01:00
parent 04a9d5ac7f
commit 2442a65dd3

View file

@ -392,6 +392,8 @@ export const getShowplan = (timeslotId: number): AppThunk => async dispatch => {
}
if (ops.length > 0) {
console.log("Is corrupt, but we're not going to repair it :)")
/*
console.log("Repairing showplan", ops);
const updateResult = await api.updateShowplan(timeslotId, ops);
if (!updateResult.every(x => x.status)) {
@ -399,6 +401,7 @@ export const getShowplan = (timeslotId: number): AppThunk => async dispatch => {
dispatch(showplan.actions.getShowplanError("Repair failed!"));
return;
}
*/
}
dispatch(showplan.actions.getShowplanSuccess(plan.flat(2)));
} catch (e) {