aboutsummaryrefslogtreecommitdiff
path: root/src/server/index.ts
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2019-10-14 13:38:31 -0400
committerSam Wilkins <samwilkins333@gmail.com>2019-10-14 13:38:31 -0400
commitcc84f5620b3f3ef801e3b0696f817e4fb74f58fc (patch)
treea743f02dd80daea6ea37040ec2371db7acd1b7b8 /src/server/index.ts
parentfb3d1a66100e9ecf573031cfcafeb983f4ad5d5b (diff)
parent9d877a5d38a5574b6ab99c20d0c1718e0af964b5 (diff)
merged with master
Diffstat (limited to 'src/server/index.ts')
-rw-r--r--src/server/index.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/server/index.ts b/src/server/index.ts
index fbc22d665..2203ae2e1 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -257,7 +257,6 @@ const solrURL = "http://localhost:8983/solr/#/dash";
app.get("/textsearch", async (req, res) => {
let q = req.query.q;
- console.log("TEXTSEARCH " + q);
if (q === undefined) {
res.send([]);
return;
@@ -1017,9 +1016,9 @@ addSecureRoute({
method: Method.POST,
subscribers: RouteStore.writeGoogleAccessToken,
onValidation: async (user, req, res) => {
- const information = { credentialsPath, userId: user.id };
- const { token } = await GoogleApiServerUtils.ProcessClientSideCode(information, req.body.authenticationCode);
- res.send(token.access_token);
+ const userId = user.id;
+ const information = { credentialsPath, userId };
+ res.send(await GoogleApiServerUtils.ProcessClientSideCode(information, req.body.authenticationCode));
}
});