Skip to content

Commit

Permalink
feat(task-description): update status on rerun processing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sujit committed Nov 4, 2024
1 parent 8371ceb commit fe081bd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ const DescriptionBox = () => {

const { mutate: updateStatus } = useMutation<any, any, any, unknown>({
mutationFn: postTaskStatus,
onSuccess: () => {
queryClient.invalidateQueries(['task-assets-info']);
},
onError: (err: any) => {
toast.error(err.message);
},
Expand All @@ -61,7 +64,6 @@ const DescriptionBox = () => {
taskId,
data: { event: 'image_upload', updated_at: new Date().toISOString() },
});
queryClient.invalidateQueries(['task-assets-info']);
toast.success('Image processing re-started');
},
});
Expand Down

0 comments on commit fe081bd

Please sign in to comment.