1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:07:25 +08:00

Fix undelete on existing not committing transaction

This commit is contained in:
Dean Herbert 2021-11-26 19:05:34 +09:00
parent d73e81ee63
commit 2ee08b5f4c

View File

@ -387,7 +387,9 @@ namespace osu.Game.Stores
if (CanReuseExisting(existing, item))
{
LogForModel(item, @$"Found existing {HumanisedModelName} for {item} (ID {existing.ID}) skipping import.");
existing.DeletePending = false;
transaction.Commit();
return existing.ToLive();
}