update Implement standardized documentation for all database modules, including purpose, rules, and requirements for each CRUD operation; refactor existing comments to follow new documentation standard ```
16 lines
332 B
TypeScript
16 lines
332 B
TypeScript
// PURPOSE:
|
|
// Delete customer record
|
|
// REQ0006
|
|
//
|
|
// RULES:
|
|
// error handled by caller
|
|
// contain definition to collection only
|
|
//
|
|
|
|
import { pb } from '@/lib/pb';
|
|
import { COL_CUSTOMERS } from '@/constants';
|
|
|
|
export async function deleteCustomer(id: string): Promise<boolean> {
|
|
return pb.collection(COL_CUSTOMERS).delete(id);
|
|
}
|