mirror of
https://github.com/immich-app/immich.git
synced 2025-11-29 08:30:03 +09:00
chore(web): generate API functions with a single argument (#2568)
This commit is contained in:
@@ -26,9 +26,12 @@
|
||||
|
||||
const loadAssetData = async () => {
|
||||
try {
|
||||
const { data } = await api.assetApi.serveFile(asset.id, false, true, publicSharedKey, {
|
||||
responseType: 'blob'
|
||||
});
|
||||
const { data } = await api.assetApi.serveFile(
|
||||
{ assetId: asset.id, isThumb: false, isWeb: true, key: publicSharedKey },
|
||||
{
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
|
||||
if (!(data instanceof Blob)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user