feat: add project's user count (#6992)
* feat: add project user count * feat: add user count * fix: user count
This commit is contained in:
1 parent
c48c9e75f9
commit
d5b9c97fed
4 files changed
+45
-22
No files matched your search
@@ -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,
|
||||
},
|
||||
);
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user