fix: save request context set on teams

This commit is contained in:
Andrew Bastin
2021-08-20 18:25:34 +05:30
parent 7082eb27db
commit b08b06c4d4
4 changed files with 33 additions and 21 deletions

View File

@@ -457,10 +457,11 @@ export async function saveRequestAsTeams(
teamID,
collectionID
) {
await apollo.mutate({
const x = await apollo.mutate({
mutation: gql`
mutation ($data: CreateTeamRequestInput!, $collectionID: String!) {
createRequestInCollection(data: $data, collectionID: $collectionID) {
id
collection {
id
team {
@@ -480,6 +481,7 @@ export async function saveRequestAsTeams(
},
},
})
return x.data?.createRequestInCollection
}
export async function overwriteRequestTeams(apollo, request, title, requestID) {