diff --git a/routes/index.js b/routes/index.js index f8e0dde22f75dd23829e915cb9ceb55687b1ca91..cae24dd9edb686b1c138ed7eba3bc0bd511058f2 100644 --- a/routes/index.js +++ b/routes/index.js @@ -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