Skip to content

Commit

Permalink
Fixed qua spreadsheet range
Browse files Browse the repository at this point in the history
  • Loading branch information
ROODAY committed May 11, 2020
1 parent 95582be commit ba23902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkEmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ exports.handler = async (req, res) => {

// check if the user has rsvp'd
const rsvpSheetId = "1A3wrDiaC7SICy8fs4S8qNvzpx28UsfNn8NLfpOmPtD8";
let rsvps = await getSheetData(jwt, apiKey, rsvpSheetId, "B2:B");
let rsvps = await getSheetData(jwt, apiKey, rsvpSheetId, "L2:L");
rsvps = rsvps.data.values ? rsvps.data.values.filter(v => v.length === 1).map(v => v[0]) : [];
const rsvpd = rsvps.includes(req.body.email);

Expand Down

0 comments on commit ba23902

Please sign in to comment.