690320:2126 UUID agian by Claude Sonnet #02
Build and Deploy / deploy (push) Failing after 4m27s
Build and Deploy / deploy (push) Failing after 4m27s
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
|
||||
import { projectService } from '@/lib/services/project.service';
|
||||
import type { ProjectListItem } from '@/lib/services/project.service';
|
||||
import { CreateProjectDto, UpdateProjectDto, SearchProjectDto } from '@/types/dto/project/project.dto';
|
||||
import { toast } from 'sonner';
|
||||
import { getApiErrorMessage } from '@/types/api-error';
|
||||
@@ -11,7 +12,7 @@ export const projectKeys = {
|
||||
};
|
||||
|
||||
export function useProjects(params?: SearchProjectDto) {
|
||||
return useQuery({
|
||||
return useQuery<ProjectListItem[]>({
|
||||
queryKey: projectKeys.list(params || {}),
|
||||
queryFn: () => projectService.getAll(params),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user