Skip to content

Commit

Permalink
attempt to get base64 working
Browse files Browse the repository at this point in the history
  • Loading branch information
engelhartrueben committed Sep 13, 2024
1 parent f012fb9 commit 89a49fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/server/api/lib/import-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@ const getDocument = async documentId => {

const auth = google.auth.fromJSON(key);
auth.scopes = ["https://www.googleapis.com/auth/documents.readonly"];

const docs = google.docs({
version: "v1",
auth
});

console.log("Retrieving document from Google - ", documentId);
try {
result = await docs.documents.get({
documentId
documentId: documentId
});
} catch (err) {
console.log(err);
Expand Down

0 comments on commit 89a49fe

Please sign in to comment.