This commit is contained in:
louiscklaw
2025-04-18 23:41:37 +08:00
parent b1a7d9f7fa
commit eb94c3d596
16 changed files with 418 additions and 137 deletions

View File

@@ -0,0 +1,13 @@
import { COL_USER_METAS } from '@/constants';
import { pb } from '@/lib/pb';
export default async function getAllUserMetasCount(): Promise<number> {
try {
const result = await pb.collection(COL_USER_METAS).getList(1, 9998);
return result.totalItems;
} catch (error) {
console.error(error);
return -99;
}
}