mirror of
https://github.com/immich-app/immich.git
synced 2026-03-08 02:57:48 +03:00
chore(web): generate API functions with a single argument (#2568)
This commit is contained in:
@@ -14,12 +14,12 @@
|
||||
// TODO: Rename API method or change functionality. The assetIds passed
|
||||
// in are kept instead of removed.
|
||||
const assetsToKeep = allAssets.filter((a) => !getAssets().has(a));
|
||||
await api.assetApi.removeAssetsFromSharedLink(
|
||||
{
|
||||
await api.assetApi.removeAssetsFromSharedLink({
|
||||
removeAssetsDto: {
|
||||
assetIds: assetsToKeep.map((a) => a.id)
|
||||
},
|
||||
sharedLink?.key
|
||||
);
|
||||
key: sharedLink?.key
|
||||
});
|
||||
|
||||
sharedLink.assets = assetsToKeep;
|
||||
clearSelect();
|
||||
|
||||
Reference in New Issue
Block a user