|
|
|
@ -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!
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
@item.destroy!
|
|
|
|
|
end
|
|
|
|
|
render_ok
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|