update student pages,

This commit is contained in:
louiscklaw
2025-04-24 13:19:21 +08:00
parent a3d2ee57f7
commit 92040c6efb
27 changed files with 598 additions and 63 deletions

View File

@@ -0,0 +1,8 @@
import { pb } from '@/lib/pb';
import { COL_CUSTOMERS } from '@/constants';
import type { RecordModel } from 'pocketbase';
import type { EditFormProps } from '@/components/dashboard/customer/type.d';
export async function updateCustomer(id: string, data: Partial<EditFormProps>): Promise<RecordModel> {
return pb.collection(COL_CUSTOMERS).update(id, data);
}