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
```
This commit is contained in:
2025-05-17 10:02:05 +00:00
parent b8309596be
commit 59cdf7257b
135 changed files with 1207 additions and 37 deletions

View File

@@ -1,6 +1,12 @@
// api method for update notification record
// PURPOSE:
// Update notification record
//
// RULES:
// TBA
// 1. Uses COL_NOTIFICATIONS collection
// 2. Requires valid notification ID string
// 3. Accepts Partial<NotificationFormProps> update data
// 4. Returns Promise<RecordModel> with updated record
// 5. Errors handled by caller
import { pb } from '@/lib/pb';
import { COL_NOTIFICATIONS } from '@/constants';
import type { RecordModel } from 'pocketbase';