260224:1606 20260224:1600 V1.8.0
All checks were successful
Build and Deploy / deploy (push) Successful in 6m25s

This commit is contained in:
admin
2026-02-24 16:06:15 +07:00
parent 97cc41f489
commit 158179d4a5
255 changed files with 5339 additions and 2094 deletions

View File

@@ -3,6 +3,7 @@ import { rfaService } from '@/lib/services/rfa.service';
import { SearchRfaDto, CreateRfaDto, UpdateRfaDto } from '@/types/dto/rfa/rfa.dto';
import { WorkflowActionDto } from '@/lib/services/rfa.service';
import { toast } from 'sonner';
import { getApiErrorMessage } from '@/types/api-error';
// Keys
export const rfaKeys = {
@@ -42,9 +43,9 @@ export function useCreateRFA() {
toast.success('RFA created successfully');
queryClient.invalidateQueries({ queryKey: rfaKeys.lists() });
},
onError: (error: any) => {
onError: (error: unknown) => {
toast.error('Failed to create RFA', {
description: error.response?.data?.message || 'Something went wrong',
description: getApiErrorMessage(error, 'Something went wrong'),
});
},
});
@@ -61,9 +62,9 @@ export function useUpdateRFA() {
queryClient.invalidateQueries({ queryKey: rfaKeys.detail(id) });
queryClient.invalidateQueries({ queryKey: rfaKeys.lists() });
},
onError: (error: any) => {
onError: (error: unknown) => {
toast.error('Failed to update RFA', {
description: error.response?.data?.message || 'Something went wrong',
description: getApiErrorMessage(error, 'Something went wrong'),
});
},
});
@@ -80,9 +81,9 @@ export function useProcessRFA() {
queryClient.invalidateQueries({ queryKey: rfaKeys.detail(id) });
queryClient.invalidateQueries({ queryKey: rfaKeys.lists() });
},
onError: (error: any) => {
onError: (error: unknown) => {
toast.error('Failed to process workflow', {
description: error.response?.data?.message || 'Something went wrong',
description: getApiErrorMessage(error, 'Something went wrong'),
});
},
});