mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 20:32:55 +08:00
Fix undelete on existing not committing transaction
This commit is contained in:
parent
d73e81ee63
commit
2ee08b5f4c
@ -387,7 +387,9 @@ namespace osu.Game.Stores
|
|||||||
if (CanReuseExisting(existing, item))
|
if (CanReuseExisting(existing, item))
|
||||||
{
|
{
|
||||||
LogForModel(item, @$"Found existing {HumanisedModelName} for {item} (ID {existing.ID}) – skipping import.");
|
LogForModel(item, @$"Found existing {HumanisedModelName} for {item} (ID {existing.ID}) – skipping import.");
|
||||||
|
|
||||||
existing.DeletePending = false;
|
existing.DeletePending = false;
|
||||||
|
transaction.Commit();
|
||||||
|
|
||||||
return existing.ToLive();
|
return existing.ToLive();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user