update init teacher ,

This commit is contained in:
louiscklaw
2025-04-24 12:09:47 +08:00
parent 29b074f6dd
commit ca2a9c235b
38 changed files with 309 additions and 292 deletions

View File

@@ -0,0 +1,9 @@
import { COL_TEACHERS } from '@/constants';
import { pb } from '@/lib/pb';
export default async function GetActiveCount(): Promise<number> {
const { totalItems: count } = await pb.collection(COL_TEACHERS).getList(1, 1, {
filter: 'status = "active"',
});
return count;
}