Fix review queue pagination and API fallback handling
CI / backend-and-migrations (push) Canceled after 0s
CI / astro-build (push) Canceled after 0s
CI / compose-e2e (push) Canceled after 0s

This commit is contained in:
ik
2026-09-08 13:24:58 +07:00
parent ddb6909c4d
commit 1f63f71600
11 changed files with 93 additions and 6 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ export class ApiError extends Error {
}
export async function api<T>(path: string): Promise<T> {
const response = await fetch(`${base}${path}`);
const response = await fetch(`${base}${path}`, { signal: AbortSignal.timeout(8000) });
if (!response.ok) throw new ApiError(response.status);
return response.json() as Promise<T>;
}