update notifications,
This commit is contained in:
9
002_source/cms/src/db/Notifications/Delete.tsx
Normal file
9
002_source/cms/src/db/Notifications/Delete.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
// api method for delete notification record
|
||||
// RULES:
|
||||
// TBA
|
||||
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);
|
||||
}
|
Reference in New Issue
Block a user