diff --git a/src/api/mutators/useAutomaticSchedulerMutation.ts b/src/api/mutators/useAutomaticSchedulerMutation.ts index 9b73862..8acc766 100644 --- a/src/api/mutators/useAutomaticSchedulerMutation.ts +++ b/src/api/mutators/useAutomaticSchedulerMutation.ts @@ -56,13 +56,11 @@ export default function useAutomaticSchedulerMutation() { } ); - return async (parameters: { + return (parameters: { bursar: BursarExportJobDTO; scheduling: SchedulingDTO; }) => { - try { - mutation.mutate(parameters); - } catch (e) {} + mutation.mutate(parameters); return {}; }; } diff --git a/src/api/mutators/useManualSchedulerMutation.ts b/src/api/mutators/useManualSchedulerMutation.ts index 6033b31..903f1d2 100644 --- a/src/api/mutators/useManualSchedulerMutation.ts +++ b/src/api/mutators/useManualSchedulerMutation.ts @@ -29,10 +29,8 @@ export default function useManualSchedulerMutation() { } ); - return async (parameters: BursarExportJobDTO) => { - try { - mutation.mutate(parameters); - } catch (e) {} + return (parameters: BursarExportJobDTO) => { + mutation.mutate(parameters); return {}; }; }