forked from mirrors/claude-code-usage-dashboard
filter noshare users
This commit is contained in:
@@ -9,6 +9,7 @@ interface ApiKeysResponse {
|
|||||||
data: Array<{
|
data: Array<{
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
tags: string[];
|
||||||
usage: {
|
usage: {
|
||||||
total: {
|
total: {
|
||||||
cost: number;
|
cost: number;
|
||||||
@@ -123,7 +124,7 @@ export class ApiClient {
|
|||||||
throw new Error('Invalid response format from admin/api-keys');
|
throw new Error('Invalid response format from admin/api-keys');
|
||||||
}
|
}
|
||||||
|
|
||||||
return data.data;
|
return data.data.filter(user => !user.tags.includes("noshare"));
|
||||||
}
|
}
|
||||||
|
|
||||||
async getKeyId(apiKey: string): Promise<string> {
|
async getKeyId(apiKey: string): Promise<string> {
|
||||||
|
|||||||
Reference in New Issue
Block a user