temporary server action for group and inside

This commit is contained in:
2024-05-17 15:33:15 +07:00
parent c1a019a461
commit 3c37fbf59b
6 changed files with 60 additions and 22 deletions

20
app/grouping/action.ts Normal file
View File

@@ -0,0 +1,20 @@
"use server";
export type JobCategory = {
id: number;
name: string;
};
export type Group = {
id: number;
jobs: number[];
};
//TODO: submit group
export async function updateGroups(
province: number,
zone: number,
groups: Group[],
) {
console.log({ province, zone, groups });
}