mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
feat(server): improve API specification (#1853)
This commit is contained in:
@@ -34,9 +34,14 @@
|
||||
return;
|
||||
}
|
||||
|
||||
const { data } = await api.assetApi.getAssetThumbnail(thubmnailId, ThumbnailFormat.Jpeg, {
|
||||
responseType: 'blob'
|
||||
});
|
||||
const { data } = await api.assetApi.getAssetThumbnail(
|
||||
thubmnailId,
|
||||
ThumbnailFormat.Jpeg,
|
||||
undefined,
|
||||
{
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
|
||||
if (data instanceof Blob) {
|
||||
return URL.createObjectURL(data);
|
||||
|
||||
Reference in New Issue
Block a user