mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-07 01:56:53 +00:00
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:
Vendored
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user