fix: handle paginated API key search response (#5014)

* fix: handle paginated API key search response

* fix: add accessible label to API key filter
This commit is contained in:
yyhhyyyyyy
2026-05-25 23:15:59 +08:00
committed by GitHub
parent 465c5edab9
commit 349d5429ca
9 changed files with 76 additions and 41 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ export async function getApiKeys(
// Search API keys by keyword or token (with pagination)
export async function searchApiKeys(
params: SearchApiKeysParams
): Promise<{ success: boolean; message?: string; data?: ApiKey[] }> {
): Promise<GetApiKeysResponse> {
const { keyword = '', token = '', p, size } = params
const queryParams = new URLSearchParams()
if (keyword) queryParams.set('keyword', keyword)