Hotfix: delete event and dated value when excluding a day #1010

Merged
jon merged 11 commits from Hotfix-ZoneEventsExclusion into master 2024-11-28 12:51:45 +00:00
1 changed files with 6 additions and 1 deletions
Showing only changes of commit 1a0406b5b1 - Show all commits

View File

@ -67,7 +67,12 @@ const exclusionGeoCreate = async () => {
};
const exclusionCreate = async () => {
if (isNew.value)
await axios.post(`Zones/${route.params.id}/exclusions`, [{ dated: dated }]);
else
await axios.put(`Zones/${route.params.id}/exclusions/${props.event?.id}`, {
dated: dated,
});
await refetchEvents();
};