From 029d37eb77e6a2b148d1330b5f3cb7b408d99863 Mon Sep 17 00:00:00 2001 From: Gringo <timothe.barthez@student-cs.fr> Date: Fri, 27 Dec 2019 14:17:24 +0100 Subject: [PATCH] Changed request --- routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/index.js b/routes/index.js index f8e0dde..cae24dd 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 -- GitLab