filter noshare users

This commit is contained in:
YouXam
2025-08-29 14:53:48 +08:00
parent c1667aa8e1
commit 1812e7cd35

View File

@@ -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> {