update notifications,

This commit is contained in:
louiscklaw
2025-04-24 20:02:56 +08:00
parent b8e8968866
commit 2dcc765072
17 changed files with 348 additions and 57 deletions

View File

@@ -0,0 +1,10 @@
// api method for get all notification records
// RULES:
// TBA
import { pb } from '@/lib/pb';
import { COL_NOTIFICATIONS } from '@/constants';
import { RecordModel } from 'pocketbase';
export async function getAllNotifications(options = {}): Promise<RecordModel[]> {
return pb.collection(COL_NOTIFICATIONS).getFullList(options);
}