Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 80c4f06

Browse files
authored
refactor(type): remvoe :status return type (#407)
1 parent 91bb5cc commit 80c4f06

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

lib/groupher_server_web/schema/Helper/metrics.ex

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ defmodule GroupherServerWeb.Schema.Helper.Metrics do
66

77
use Absinthe.Schema.Notation
88

9-
object :status do
10-
field(:done, :boolean)
11-
field(:id, :id)
12-
end
13-
149
object :done do
1510
field(:done, :boolean)
1611
end

lib/helper/utils/utils.ex

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ defmodule Helper.Utils do
6464
def done({:ok, _}, with: result), do: {:ok, result}
6565
def done({:error, reason}, with: _result), do: {:error, reason}
6666

67-
def done({:ok, %{id: id}}, :status), do: {:ok, %{done: true, id: id}}
68-
def done({:error, _}, :status), do: {:ok, %{done: false}}
69-
7067
def done(nil, queryable, id), do: {:error, not_found_formater(queryable, id)}
7168
def done(result, _, _), do: {:ok, result}
7269

0 commit comments

Comments
 (0)