fix: ghToken in session now

This commit is contained in:
Andras Bacsai
2022-02-18 15:29:32 +01:00
parent 2ce64ac213
commit 906a63b6b5
8 changed files with 37 additions and 39 deletions

View File

@@ -17,7 +17,7 @@
const endpoint = `/applications/${params.id}.json`;
const res = await fetch(endpoint);
if (res.ok) {
const { application, githubToken, ghToken, isRunning, appId } = await res.json();
const { application, isRunning, appId } = await res.json();
if (!application || Object.entries(application).length === 0) {
return {
status: 302,
@@ -42,8 +42,6 @@
},
stuff: {
isRunning,
ghToken,
githubToken,
application,
appId
}