Skip to content

Conversation

@erri120
Copy link
Member

@erri120 erri120 commented Oct 29, 2025

Fixes #4037.

@erri120 erri120 requested a review from a team October 29, 2025 12:40
@erri120 erri120 self-assigned this Oct 29, 2025
@erri120 erri120 added this to App Oct 29, 2025
@github-project-automation github-project-automation bot moved this to Development review in App Oct 29, 2025
Comment on lines +541 to +550
foreach (var parentGroup in groupedByParent)
{
var parentId = parentGroup.Key;
var loadoutItemsInParent = parentGroup.ToArray();

using var tx = _connection.BeginTransaction();
RemoveItems(tx, loadoutItemsInParent);
await InstallItem(libraryItemToInstall, loadoutId, parent: parentId, inputTx: tx);
await tx.Commit();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is making a separate transaction for each collection, it should be a single transaction for all the replacements.

@erri120 erri120 marked this pull request as draft October 30, 2025 10:57
@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2025

This PR has been marked as stale due to inactivity.

@github-actions github-actions bot added the Stale label Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Development review

Development

Successfully merging this pull request may close these issues.

Mods aren't updated in all collections

2 participants