daiao 5 years ago
parent 4a9e5fc85f
commit 0a49a9a919

@ -43,8 +43,9 @@ class ItemBanksController < ApplicationController
ApplyAction.where(container_type: "ItemBank", container_id: @item.id).destroy_all
if @item.item_type == "PROGRAM"
@item.container&.destroy!
else
@item.destroy!
end
@item.destroy!
render_ok
end
end

Loading…
Cancel
Save