Skip to content

Commit

Permalink
AddAffiliates query authentication fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Barros authored and Gabriel Barros committed Oct 25, 2023
1 parent 58fe7a9 commit 3cf1aa6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type Query {
filter: AffiliatesFilterInput
sorting: AffliatesSortingInput
): AffiliatesPage! @checkAdminAccess
getAffiliate(affiliateId: ID!): Affiliate @checkAdminAccess
getAffiliate(affiliateId: ID!): Affiliate @checkUserAccess
getAffiliateByEmail(email: String!): Affiliate
getAffiliatesScroll(
filter: AffiliatesFilterInput
Expand All @@ -16,7 +16,7 @@ type Query {
}

type Mutation {
addAffiliate(newAffiliate: NewAffiliateInput!): Affiliate! @checkAdminAccess
addAffiliate(newAffiliate: NewAffiliateInput!): Affiliate!
updateAffiliate(
affiliateId: String!
updateAffiliate: UpdateAffiliateInput!
Expand Down
2 changes: 1 addition & 1 deletion node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@types/jest": "^27.0.2",
"@types/node": "^12.0.0",
"@types/ramda": "types/npm-ramda#dist",
"@vtex/api": "6.45.22",
"@vtex/api": "6.45.24",
"@vtex/test-tools": "^3.4.1",
"@vtex/tsconfig": "^0.5.6",
"typescript": "3.9.7"
Expand Down
8 changes: 4 additions & 4 deletions node/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1658,10 +1658,10 @@
resolved "https://registry.yarnpkg.com/@types/zen-observable/-/zen-observable-0.8.3.tgz#781d360c282436494b32fe7d9f7f8e64b3118aa3"
integrity sha512-fbF6oTd4sGGy0xjHPKAt+eS2CrxJ3+6gQ3FGcBoIJR2TLAyCkCyI8JqZNy+FeON0AhVgNJoUumVoZQjBFUqHkw==

"@vtex/api@6.45.22":
version "6.45.22"
resolved "https://registry.yarnpkg.com/@vtex/api/-/api-6.45.22.tgz#fa9bbfde1a4d4fbbaf6cce9f6dbc9bb9ee929ba3"
integrity sha512-g5cGUDhF4FADgSMpQmce/bnIZumwGlPG2cabwbQKIQ+cCFMZqOEM/n+YQb1+S8bCyHkzW3u/ZABoyCKi5/nxxg==
"@vtex/api@6.45.24":
version "6.45.24"
resolved "https://registry.yarnpkg.com/@vtex/api/-/api-6.45.24.tgz#5643d80de9b5ac9491c03a47be0329872896a6eb"
integrity sha512-BaNdncM2Jfqdu/DikxrDVH7fdek5vH02nvH4RCyNcZ3KSSYZaKk4QGr2EjEHI/rhkOIbJOlOAW5ol4uDcGbQjQ==
dependencies:
"@types/koa" "^2.11.0"
"@types/koa-compose" "^3.2.3"
Expand Down

0 comments on commit 3cf1aa6

Please sign in to comment.