Skip to content

Commit

Permalink
Fix missing auth headers when starting job (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
mihow authored Mar 26, 2024
1 parent 66c6736 commit 67f68d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/data-services/hooks/jobs/useQueueJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const useQueueJob = () => {

const { mutateAsync, isLoading, isSuccess, error } = useMutation({
mutationFn: (id: string) =>
axios.post<{ id: number }>(`${API_URL}/${API_ROUTES.JOBS}/${id}/run/`, {
axios.post<{ id: number }>(`${API_URL}/${API_ROUTES.JOBS}/${id}/run/`, undefined, {
headers: getAuthHeader(user),
}),
onSuccess: () => {
Expand Down

0 comments on commit 67f68d0

Please sign in to comment.