Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions web/src/lib/utils/asset-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ import { navigate } from '$lib/utils/navigation';
import {
addAssetsToAlbum as addAssets,
AssetVisibility,
bulkTagAssets,
createStack,
deleteAssets,
deleteStacks,
getAssetInfo,
getBaseUrl,
getDownloadInfo,
getStack,
tagAssets as tagAllAssets,
untagAssets,
updateAsset,
updateAssets,
Expand Down Expand Up @@ -83,9 +83,7 @@ export const tagAssets = async ({
tagIds: string[];
showNotification?: boolean;
}) => {
for (const tagId of tagIds) {
await tagAllAssets({ id: tagId, bulkIdsDto: { ids: assetIds } });
}
await bulkTagAssets({ tagBulkAssetsDto: { tagIds, assetIds } });

if (showNotification) {
const $t = await getFormatter();
Expand Down
Loading