MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / countStatus

Function countStatus

packages/hydrooj/src/model/document.ts:177–181  ·  view source on GitHub ↗
(
    domainId: string, docType: K, query?: Filter<DocStatusType[K]>,
)

Source from the content-addressed store, hash-verified

175}
176
177export function countStatus<K extends keyof DocStatusType>(
178 domainId: string, docType: K, query?: Filter<DocStatusType[K]>,
179) {
180 return collStatus.countDocuments({ ...query, docType, domainId });
181}
182
183export async function push<K extends keyof DocType>(
184 domainId: string, docType: K, docId: DocType[K]['docId'],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected