Get nested ids when title removed

This commit is contained in:
Leeingnyo
2021-09-14 23:08:07 +09:00
parent 9489d6abfd
commit 57b2f7c625
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -153,8 +153,9 @@ class Library
title = @title_hash[title_id]
existence = title.examine examine_context
unless existence
examine_context["deleted_title_ids"].concat title.deep_titles.map &.id
examine_context["deleted_entry_ids"].concat title.deep_entries.map &.id
@title_hash.delete title_id
examine_context["deleted_title_ids"] << title_id
end
existence
end