mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
perf(web): batch asset store changes (#7974)
* perf(web): batch asset store changes * update external calls to assetstore
This commit is contained in:
parent
a3dfa27a53
commit
5a6b71dda3
2 changed files with 118 additions and 66 deletions
|
|
@ -169,12 +169,12 @@
|
|||
case AssetAction.UNARCHIVE:
|
||||
case AssetAction.FAVORITE:
|
||||
case AssetAction.UNFAVORITE: {
|
||||
assetStore.updateAsset(asset);
|
||||
assetStore.updateAssets([asset]);
|
||||
break;
|
||||
}
|
||||
|
||||
case AssetAction.ADD: {
|
||||
assetStore.addAsset(asset);
|
||||
assetStore.addAssets([asset]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue