update notifications,
This commit is contained in:
10
002_source/cms/src/db/Notifications/GetById.tsx
Normal file
10
002_source/cms/src/db/Notifications/GetById.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
// api method for get notification by id
|
||||
// RULES:
|
||||
// TBA
|
||||
import { pb } from '@/lib/pb';
|
||||
import { COL_NOTIFICATIONS } from '@/constants';
|
||||
import { RecordModel } from 'pocketbase';
|
||||
|
||||
export async function getNotificationById(id: string): Promise<RecordModel> {
|
||||
return pb.collection(COL_NOTIFICATIONS).getOne(id);
|
||||
}
|
Reference in New Issue
Block a user