update customers,
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
// api method for crate customer record
|
||||
// RULES:
|
||||
// TBA
|
||||
import { pb } from '@/lib/pb';
|
||||
import { COL_CUSTOMERS } from '@/constants';
|
||||
import type { CreateFormProps } from '@/components/dashboard/customer/type.d';
|
||||
import type { RecordModel } from 'pocketbase';
|
||||
|
||||
export async function createCustomer(data) {
|
||||
export async function createCustomer(data: CreateFormProps): Promise<RecordModel> {
|
||||
return pb.collection(COL_CUSTOMERS).create(data);
|
||||
}
|
||||
|
Reference in New Issue
Block a user