21 lines
296 B
TypeScript
21 lines
296 B
TypeScript
"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 });
|
|
}
|