Skip to content
Snippets Groups Projects
Commit 029d37eb authored by Timothé Bailly-Barthez's avatar Timothé Bailly-Barthez
Browse files

Changed request

parent 26116209
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ async function request_promotion(access_token, promotion, offset) {
} else {
const url = "https://gateway.linkcs.fr/v1/graphql"
const headers = {Authorization: "Bearer " + access_token}
const query = '{getPromotion(promotion: ' + promotion + ', limit: 60, offset: ' + offset + ') {login, memberships {association {id, name, type}}}}';
const query = '{getPromotion(promotion: ' + promotion + ', limit: 60, offset: ' + offset + ') {role {sector {composition {association {id, name, type}}}}}}';
const request = await axios({
url: url + "?query=" + query,
headers: headers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment