update teachers,

This commit is contained in:
louiscklaw
2025-05-08 14:37:48 +08:00
parent 367e58a8cf
commit 30f494fc35
15 changed files with 72 additions and 59 deletions

View File

@@ -1,8 +1,8 @@
import { COL_TEACHERS } from '@/constants';
import { COL_TEACHERS, COL_USER_METAS } 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, {
const { totalItems: count } = await pb.collection(COL_USER_METAS).getList(1, 1, {
filter: 'status = "active"',
});
return count;