chore(library): review deprecated get, now paging and all are local and not by API

This commit is contained in:
Julien Froidefond
2025-02-23 09:19:55 +01:00
parent 995ec455f7
commit 75fc3a482a
3 changed files with 100 additions and 30 deletions

View File

@@ -16,7 +16,7 @@ export class ImageService extends BaseApiService {
return this.fetchWithCache<ImageResponse>(
`image-${path}`,
async () => {
const response = await this.fetchFromApi<Response>(url, headers, true);
const response = await this.fetchFromApi<Response>(url, headers, { isImage: true });
const contentType = response.headers.get("content-type");
const arrayBuffer = await response.arrayBuffer();
const buffer = Buffer.from(arrayBuffer);