Skip to content

Commit

Permalink
fix: e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Burtey committed Sep 30, 2023
1 parent 31589bf commit bbcde1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 2 additions & 0 deletions src/servers/graphql-admin-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ const setGqlAdminContext = async (

if (isEmail) {
isEditor = true
} else if (tokenPayload.scope.includes("editor")) {
isEditor = true
} else {
// TODO: remove branch once migration is completed to Oauth2
const userId = checkedToUserId(auditorId)
Expand Down
7 changes: 0 additions & 7 deletions test/bats/admin.bats
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ exec_admin_graphql() {
-d "{\"query\": \"$(gql_admin_query $query_name)\", \"variables\": $variables}" \
"${GALOY_ENDPOINT}/${gql_route}"

echo curl -s \
-X POST \
${AUTH_HEADER:+ -H "$AUTH_HEADER"} \
-H "Content-Type: application/json" \
-d "{\"query\": \"$(gql_admin_query $query_name)\", \"variables\": $variables}" \
"${GALOY_ENDPOINT}/${gql_route}"

echo "GQL output: '$output'"
}

Expand Down

0 comments on commit bbcde1c

Please sign in to comment.