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:
@@ -50,7 +50,8 @@ import { SearchContractDto, CreateContractDto, UpdateContractDto } from "@/types
|
||||
import { AxiosError } from "axios";
|
||||
|
||||
interface Project {
|
||||
id: string; // ADR-019: uuid exposed as 'id'
|
||||
uuid: string;
|
||||
id?: number;
|
||||
projectCode: string;
|
||||
projectName: string;
|
||||
}
|
||||
@@ -82,14 +83,14 @@ const contractSchema = z.object({
|
||||
type ContractFormData = z.infer<typeof contractSchema>;
|
||||
|
||||
const useContracts = (params?: SearchContractDto) => {
|
||||
return useQuery({
|
||||
return useQuery<Contract[]>({
|
||||
queryKey: ['contracts', params],
|
||||
queryFn: () => contractService.getAll(params),
|
||||
});
|
||||
};
|
||||
|
||||
const useProjectsList = () => {
|
||||
return useQuery({
|
||||
return useQuery<Project[]>({
|
||||
queryKey: ['projects-list'],
|
||||
queryFn: () => projectService.getAll(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user