mirror of
https://github.com/wassname/talk.git
synced 2026-07-26 13:37:38 +08:00
[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:
co-authored by
Wyatt Johnson
parent
75c0bad073
commit
e5ea1ee179
@@ -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
|
||||
|
||||
@@ -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])
|
||||
}
|
||||
|
||||
##################
|
||||
|
||||
Reference in New Issue
Block a user