feat: add project's user count (#6992)

* feat: add project user count

* feat: add user count

* fix: user count
This commit is contained in:
Arik Chakma authored and GitHub committed 2024-09-04 18:22:15 +01:00
1 parent c48c9e75f9
commit d5b9c97fed
4 files changed
+45 -22

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import { type APIContext } from 'astro';
import { api } from './api.ts';
export function projectApi(context: APIContext) {
return {
listProjectsUserCount: async function (projectIds: string[]) {
return api(context).post<Record<string, number>>(
`${import.meta.env.PUBLIC_API_URL}/v1-list-projects-user-count`,
{
projectIds,
},
);
},
};
}