aboutsummaryrefslogtreecommitdiff
path: root/src/server/index.ts
diff options
context:
space:
mode:
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));
}
});