9 lines
362 B
TypeScript
9 lines
362 B
TypeScript
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);
|
|
}
|