From 490f6cd7d31bdb83f7da94eba4e72b056b9aab69 Mon Sep 17 00:00:00 2001 From: Gringo <timothe.barthez@student-cs.fr> Date: Fri, 27 Dec 2019 14:26:41 +0100 Subject: [PATCH] rollback --- routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/index.js b/routes/index.js index cae24dd..f8e0dde 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 + ') {role {sector {composition {association {id, name, type}}}}}}'; + const query = '{getPromotion(promotion: ' + promotion + ', limit: 60, offset: ' + offset + ') {login, memberships {association {id, name, type}}}}'; const request = await axios({ url: url + "?query=" + query, headers: headers -- GitLab