update student pages,
This commit is contained in:
9
002_source/cms/src/db/Students/GetBlockedCount.tsx
Normal file
9
002_source/cms/src/db/Students/GetBlockedCount.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { COL_STUDENTS } from '@/constants';
|
||||
import { pb } from '@/lib/pb';
|
||||
|
||||
export default async function GetBlockedCount(): Promise<number> {
|
||||
const { totalItems: count } = await pb.collection(COL_STUDENTS).getList(1, 1, {
|
||||
filter: 'status = "blocked"',
|
||||
});
|
||||
return count;
|
||||
}
|
Reference in New Issue
Block a user