mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
mix format
This commit is contained in:
parent
d71cefe877
commit
abd441fb4d
1 changed files with 5 additions and 2 deletions
|
@ -4,8 +4,11 @@ defmodule Philomena.Images.Query do
|
|||
|
||||
defp gallery_id_transform(_ctx, value) do
|
||||
case Integer.parse(value) do
|
||||
{value, ""} when value >= 0 -> {:ok, %{nested: %{path: :galleries, query: %{term: %{"galleries.id" => value}}}}}
|
||||
_error -> {:error, "Invalid gallery `#{value}'."}
|
||||
{value, ""} when value >= 0 ->
|
||||
{:ok, %{nested: %{path: :galleries, query: %{term: %{"galleries.id" => value}}}}}
|
||||
|
||||
_error ->
|
||||
{:error, "Invalid gallery `#{value}'."}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue