|
|
@ -19,7 +19,8 @@ class OptionalItemQuery < ApplicationQuery
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if hacks.present?
|
|
|
|
if hacks.present?
|
|
|
|
items = ItemBank.where(container_id: hacks.where(status: 1).pluck(:id), container_type: "Hack").or(ItemBank.where(id: items.pluck(:id)))
|
|
|
|
items = ItemBank.where(container_id: hacks.where(status: 1).pluck(:id), container_type: "Hack")
|
|
|
|
|
|
|
|
.or(ItemBank.where(id: items.pluck(:id)).where("item_type != '6'"))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
public = source.present? ? source.to_i : 1
|
|
|
|
public = source.present? ? source.to_i : 1
|
|
|
|