Skip to content

Commit

Permalink
once more...
Browse files Browse the repository at this point in the history
  • Loading branch information
robmoffat committed Jan 21, 2025
1 parent 404d22e commit a427bfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"get-mock-events": "node ./scripts/setMock.js",
"decrypt-service-account": "gpg --quiet --batch --yes --decrypt --passphrase=${GOOGLE_SERVICE_ACCOUNT_PASSPHRASE} --output $INIT_CWD/calendar-service-account.json calendar-service-account.json.gpg",
"download-ics": "npx mkdirp dist && curl -o dist/basic.ics https://calendar.google.com/calendar/ical/finos.org_fac8mo1rfc6ehscg0d80fi8jig%40group.calendar.google.com/public/basic.ics",
"setup-env": "export GSA_DIR=$INIT_CWD",
"setup-env": "npx mkdir /var/task && cp calendar-service-account.json /var/task/calendar-service-account.json",
"get-events": "npx mkdirp dist && node ./scripts/googleapi2events.mjs",
"getEvents": "npm run get-events",
"test": "vitest"
Expand Down
3 changes: 1 addition & 2 deletions src/api/signup-submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export default async function handler(req, res) {
const eventId = req.body.eventId;

// Replace with the path to your service account JSON file
const gsa = process.env.GSA_DIR
const SERVICE_ACCOUNT_FILE = (gsa ? gsa : ".") + '/calendar-service-account.json'
const SERVICE_ACCOUNT_FILE = './calendar-service-account.json'

// Scopes required for the Google Calendar API
const SCOPES = [
Expand Down

0 comments on commit a427bfa

Please sign in to comment.