[CORL-959] pass siteID through to approved and rejected route queries (#2884)

* pass siteID through to approved and rejected route queries

* Fix tests

Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
This commit is contained in:
Tessa Thornton
2020-03-12 22:19:26 +00:00
committed by GitHub
co-authored by Wyatt Johnson
parent 75c0bad073
commit e5ea1ee179
5 changed files with 50 additions and 14 deletions
@@ -138,6 +138,7 @@ export default (ctx: Context) => ({
first,
after,
storyID,
siteID,
status,
tag,
query,
@@ -151,6 +152,7 @@ export default (ctx: Context) => ({
...queryFilter(query),
...tagFilter(tag),
storyID,
siteID,
status,
},
isNil
+5 -6
View File
@@ -2944,6 +2944,7 @@ type Query {
first: Int = 10 @constraint(max: 50)
after: Cursor
storyID: ID
siteID: ID
status: COMMENT_STATUS
tag: TAG
query: String
@@ -6415,16 +6416,14 @@ type Mutation {
"""
addStoryExpert adds an expert to a story.
"""
addStoryExpert(
input: AddExpertInput!
): AddExpertPayload! @auth(roles: [ADMIN, MODERATOR])
addStoryExpert(input: AddExpertInput!): AddExpertPayload!
@auth(roles: [ADMIN, MODERATOR])
"""
removeStoryExpert removes an expert from a story.
"""
removeStoryExpert(
input: RemoveExpertInput!
): RemoveExpertPayload! @auth(roles: [ADMIN, MODERATOR])
removeStoryExpert(input: RemoveExpertInput!): RemoveExpertPayload!
@auth(roles: [ADMIN, MODERATOR])
}
##################