improve batch update

This commit is contained in:
Hongbo Wu
2024-02-02 13:13:18 +08:00
parent 2d1eebfad8
commit 26b7103f0b
6 changed files with 46 additions and 85 deletions

View File

@ -889,14 +889,7 @@ export const bulkActionResolver = authorized<
if (count <= batchSize) {
// if there are less than 100 items, update them synchronously
const libraryItemIds = searchResult.libraryItems.map((item) => item.id)
await batchUpdateLibraryItems(
action,
libraryItemIds,
uid,
labelIds,
args
)
await batchUpdateLibraryItems(action, searchArgs, uid, labelIds, args)
return { success: true }
}