Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Graphe des assos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timothé Bailly-Barthez
Graphe des assos
Commits
986384d2
Commit
986384d2
authored
2 years ago
by
Timothé Bailly-Barthez
Browse files
Options
Downloads
Patches
Plain Diff
change linkcs api url
parent
963a382b
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
package-lock.json
+4988
-1890
4988 additions, 1890 deletions
package-lock.json
routes/index.js
+2
-2
2 additions, 2 deletions
routes/index.js
with
4990 additions
and
1892 deletions
package-lock.json
+
4988
−
1890
View file @
986384d2
This diff is collapsed.
Click to expand it.
routes/index.js
+
2
−
2
View file @
986384d2
...
...
@@ -13,7 +13,7 @@ myCache.on("expired", function (key, value) {
async
function
fetch_promotion_year
(
access_token
)
{
const
url
=
"
https://
gateway
.linkcs.fr/v1/graphql
"
const
url
=
"
https://
api
.linkcs.fr/v1/graphql
"
const
headers
=
{
Authorization
:
"
Bearer
"
+
access_token
}
const
query
=
'
{me {promotion}}
'
;
const
request
=
await
fetch
(
...
...
@@ -44,7 +44,7 @@ async function request_promotion(access_token, promotion, offset) {
console
.
log
(
"
Fetched from cache
"
);
return
{
users
:
myCache
.
get
(
key
),
changed
:
false
};
}
else
{
const
url
=
"
https://
gateway
.linkcs.fr/v1/graphql
"
const
url
=
"
https://
api
.linkcs.fr/v1/graphql
"
const
headers
=
{
Authorization
:
"
Bearer
"
+
access_token
}
const
query
=
'
{getPromotion(promotion:
'
+
promotion
+
'
, limit: 60, offset:
'
+
offset
+
'
) {login, roles {sector {composition {association {id, name, type}}}}}}
'
;
const
request
=
await
fetch
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment