From 1a1a56cf3f7400d8d27b4efe70fd58514b7ec6a6 Mon Sep 17 00:00:00 2001 From: adueck Date: Wed, 27 Nov 2024 23:19:33 +0500 Subject: [PATCH] oops --- account/src/lib/submissions.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/account/src/lib/submissions.ts b/account/src/lib/submissions.ts index 30b46c7..c94c8b5 100644 --- a/account/src/lib/submissions.ts +++ b/account/src/lib/submissions.ts @@ -21,13 +21,8 @@ const reviewTasksDb = nano.db.use("review-tasks"); const auth = new google.auth.GoogleAuth({ credentials: { - // IMPORTANT!! have to have key stored in Base64 because of the - // weirdness of node handling spaces in the key (at least there was on AWS) - private_key: Buffer.from( - env.lingdocsServiceAccountEmail, - "base64" - ).toString("ascii"), - client_email: env.lingdocsServiceAccountKey, + private_key: env.lingdocsServiceAccountKey, + client_email: env.lingdocsServiceAccountEmail, }, scopes: [ "https://www.googleapis.com/auth/spreadsheets",