feat: apply delays

This commit is contained in:
cv
2021-05-06 14:02:56 +02:00
parent 50e2fd5695
commit 72b42c7eb8
7 changed files with 145 additions and 10 deletions
+8 -3
View File
@@ -31,9 +31,14 @@ export const requestPatch = async (data) => {
};
export const requestReorder = async (data) => {
const reorder = 'reorder';
console.log('debug got reorder with payload', data);
const res = await axios.patch(eventsURL + '/' + reorder, data);
const action = 'reorder';
const res = await axios.patch(eventsURL + '/' + action, data);
return res;
};
export const requestApplyDelay = async (eventId) => {
const action = 'applydelay';
const res = await axios.patch(eventsURL + '/' + action + '/' + eventId);
return res;
};