|
|
@@ -1,7 +1,7 @@ |
|
|
|
//src\app\api\report\index.ts |
|
|
|
import { cache } from "react"; |
|
|
|
|
|
|
|
export interface ProjectClaims { |
|
|
|
export interface ProjectCompletionWO { |
|
|
|
id: number; |
|
|
|
projectCode: string; |
|
|
|
projectName: string; |
|
|
@@ -17,14 +17,14 @@ export interface ProjectClaims { |
|
|
|
} |
|
|
|
|
|
|
|
export const preloadProjects = () => { |
|
|
|
fetchProjectsProjectClaims(); |
|
|
|
fetchProjectsProjectCompletionWO(); |
|
|
|
}; |
|
|
|
|
|
|
|
export const fetchProjectsProjectClaims = cache(async () => { |
|
|
|
export const fetchProjectsProjectCompletionWO = cache(async () => { |
|
|
|
return mockProjects; |
|
|
|
}); |
|
|
|
|
|
|
|
const mockProjects: ProjectClaims[] = [ |
|
|
|
const mockProjects: ProjectCompletionWO[] = [ |
|
|
|
{ |
|
|
|
id: 1, |
|
|
|
projectCode: "CUST-001", |
|
|
|