feat(queries): next-number options for project/order create modals
This commit is contained in:
@@ -109,3 +109,12 @@ export const projectFilesOptions = (projectId: number, path: string) =>
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
export const projectNextNumberOptions = () =>
|
||||
queryOptions({
|
||||
queryKey: ["projects", "next-number"],
|
||||
queryFn: () =>
|
||||
jsonQuery<{ next_number?: string; number?: string }>(
|
||||
"/api/admin/projects/next-number",
|
||||
),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user