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

Commit cfa64f6

Browse files
authored
refactor(create): rm digest GQ arg when create/update (#419)
* refactor(create): rm digest GQ arg when create/update * chore: fix test
1 parent ff03347 commit cfa64f6

File tree

18 files changed

+0
-32
lines changed

18 files changed

+0
-32
lines changed

lib/groupher_server_web/schema/cms/mutations/blog.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ defmodule GroupherServerWeb.Schema.CMS.Mutations.Blog do
1010
field :create_blog, :blog do
1111
arg(:title, non_null(:string))
1212
arg(:body, non_null(:string))
13-
arg(:digest, non_null(:string))
1413
arg(:community_id, non_null(:id))
1514
arg(:link_addr, :string)
1615
arg(:thread, :thread, default_value: :blog)

lib/groupher_server_web/schema/cms/mutations/drink.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ defmodule GroupherServerWeb.Schema.CMS.Mutations.Drink do
1010
field :create_drink, :drink do
1111
arg(:title, non_null(:string))
1212
arg(:body, non_null(:string))
13-
arg(:digest, non_null(:string))
1413
arg(:community_id, non_null(:id))
1514
arg(:thread, :thread, default_value: :drink)
1615
arg(:article_tags, list_of(:id))

lib/groupher_server_web/schema/cms/mutations/guide.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ defmodule GroupherServerWeb.Schema.CMS.Mutations.Guide do
1010
field :create_guide, :guide do
1111
arg(:title, non_null(:string))
1212
arg(:body, non_null(:string))
13-
arg(:digest, non_null(:string))
1413
arg(:community_id, non_null(:id))
1514
arg(:thread, :thread, default_value: :guide)
1615
arg(:article_tags, list_of(:id))

lib/groupher_server_web/schema/cms/mutations/job.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ defmodule GroupherServerWeb.Schema.CMS.Mutations.Job do
1212
arg(:company, non_null(:string))
1313
arg(:company_link, :string)
1414
arg(:body, non_null(:string))
15-
arg(:digest, non_null(:string))
1615
arg(:community_id, non_null(:id))
1716

1817
arg(:desc, :string)

lib/groupher_server_web/schema/cms/mutations/meetup.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ defmodule GroupherServerWeb.Schema.CMS.Mutations.Meetup do
1010
field :create_meetup, :meetup do
1111
arg(:title, non_null(:string))
1212
arg(:body, non_null(:string))
13-
arg(:digest, non_null(:string))
1413
arg(:community_id, non_null(:id))
1514
arg(:thread, :thread, default_value: :meetup)
1615
arg(:article_tags, list_of(:id))

lib/groupher_server_web/schema/cms/mutations/post.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ defmodule GroupherServerWeb.Schema.CMS.Mutations.Post do
1111
field :create_post, :post do
1212
arg(:title, non_null(:string))
1313
arg(:body, non_null(:string))
14-
arg(:digest, non_null(:string))
1514
arg(:link_addr, :string)
1615
arg(:copy_right, :string)
1716
arg(:community_id, non_null(:id))

lib/groupher_server_web/schema/cms/mutations/radar.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ defmodule GroupherServerWeb.Schema.CMS.Mutations.Radar do
1010
field :create_radar, :radar do
1111
arg(:title, non_null(:string))
1212
arg(:body, non_null(:string))
13-
arg(:digest, non_null(:string))
1413
arg(:community_id, non_null(:id))
1514
arg(:thread, :thread, default_value: :radar)
1615
arg(:article_tags, list_of(:id))

lib/groupher_server_web/schema/cms/mutations/works.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ defmodule GroupherServerWeb.Schema.CMS.Mutations.Works do
1010
field :create_works, :works do
1111
arg(:title, non_null(:string))
1212
arg(:body, non_null(:string))
13-
arg(:digest, non_null(:string))
1413
arg(:community_id, non_null(:id))
1514
arg(:thread, :thread, default_value: :works)
1615
arg(:article_tags, list_of(:id))

test/groupher_server_web/mutation/cms/articles/blog_test.exs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ defmodule GroupherServer.Test.Mutation.Articles.Blog do
2525
mutation (
2626
$title: String!,
2727
$body: String,
28-
$digest: String!,
2928
$communityId: ID!,
3029
$articleTags: [Id]
3130
) {
3231
createBlog(
3332
title: $title,
3433
body: $body,
35-
digest: $digest,
3634
communityId: $communityId,
3735
articleTags: $articleTags
3836
) {

test/groupher_server_web/mutation/cms/articles/drink_test.exs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ defmodule GroupherServer.Test.Mutation.Articles.Drink do
2525
mutation (
2626
$title: String!,
2727
$body: String,
28-
$digest: String!,
2928
$communityId: ID!,
3029
$articleTags: [Id]
3130
) {
3231
createDrink(
3332
title: $title,
3433
body: $body,
35-
digest: $digest,
3634
communityId: $communityId,
3735
articleTags: $articleTags
3836
) {

0 commit comments

Comments
 (0)