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 ```
15 lines
436 B
TypeScript
15 lines
436 B
TypeScript
// PURPOSE:
|
|
// Delete notification record by ID
|
|
//
|
|
// RULES:
|
|
// 1. Uses COL_NOTIFICATIONS collection
|
|
// 2. Requires valid notification ID string
|
|
// 3. Returns Promise<boolean> indicating success
|
|
// 4. Errors handled by caller
|
|
import { pb } from '@/lib/pb';
|
|
import { COL_NOTIFICATIONS } from '@/constants';
|
|
|
|
export async function deleteNotification(id: string): Promise<boolean> {
|
|
return pb.collection(COL_NOTIFICATIONS).delete(id);
|
|
}
|