commit 55a4367e799efd9ed90a49fdbd8306cdd6004da0
parent 89e3e14d611823dd777b24bb27eaf8b11c5d74c2
Author: srfsh <dev@srf.sh>
Date: Thu, 15 Dec 2022 14:49:32 +0300
Zenflows.VF.EconomicResource.Query: tiny fix
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/zenflows/vf/economic_resource/query.ex b/src/zenflows/vf/economic_resource/query.ex
@@ -34,9 +34,9 @@ end
@spec all_f(Queryable.t(), {atom(), term()}) :: Queryable.t()
defp all_f(q, {:id, v}),
- do: where(q, [x], x.id_id in ^v)
+ do: where(q, [x], x.id in ^v)
defp all_f(q, {:or_id, v}),
- do: or_where(q, [x], x.id_id in ^v)
+ do: or_where(q, [x], x.id in ^v)
defp all_f(q, {:classified_as, v}),
do: where(q, [x], fragment("? @> ?", x.classified_as, ^v))
defp all_f(q, {:or_classified_as, v}),