This commit is contained in:
louiscklaw
2025-04-26 09:42:38 +08:00
parent 957df690f4
commit 7296a10ec1
2 changed files with 2 additions and 2 deletions

View File

@@ -4,6 +4,6 @@ import { pb } from '@/lib/pb';
export default function getHiddenVocabulariesCount(): Promise<number> { export default function getHiddenVocabulariesCount(): Promise<number> {
return pb return pb
.collection(COL_VOCABULARIES) .collection(COL_VOCABULARIES)
.getList(1, 9999, { filter: 'status = "hidden"' }) .getList(1, 9999, { filter: 'visible = "hidden"' })
.then((res) => res.totalItems); .then((res) => res.totalItems);
} }

View File

@@ -4,6 +4,6 @@ import { pb } from '@/lib/pb';
export default function getVisibleVocabulariesCount(): Promise<number> { export default function getVisibleVocabulariesCount(): Promise<number> {
return pb return pb
.collection(COL_VOCABULARIES) .collection(COL_VOCABULARIES)
.getList(1, 9999, { filter: 'status = "visible"' }) .getList(1, 9999, { filter: 'visible = "visible"' })
.then((res) => res.totalItems); .then((res) => res.totalItems);
} }