update,
This commit is contained in:
@@ -4,6 +4,6 @@ import { pb } from '@/lib/pb';
|
||||
export default function getHiddenVocabulariesCount(): Promise<number> {
|
||||
return pb
|
||||
.collection(COL_VOCABULARIES)
|
||||
.getList(1, 9999, { filter: 'status = "hidden"' })
|
||||
.getList(1, 9999, { filter: 'visible = "hidden"' })
|
||||
.then((res) => res.totalItems);
|
||||
}
|
||||
|
@@ -4,6 +4,6 @@ import { pb } from '@/lib/pb';
|
||||
export default function getVisibleVocabulariesCount(): Promise<number> {
|
||||
return pb
|
||||
.collection(COL_VOCABULARIES)
|
||||
.getList(1, 9999, { filter: 'status = "visible"' })
|
||||
.getList(1, 9999, { filter: 'visible = "visible"' })
|
||||
.then((res) => res.totalItems);
|
||||
}
|
||||
|
Reference in New Issue
Block a user