Skip to content

Commit cf9ecd9

Browse files
committed
Fix expired-member-remover
1 parent 5fd4023 commit cf9ecd9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

components/expired-members-remover/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,11 @@ const readDatabase = async (googleSheet) => {
202202
const emailsInDb = {};
203203
const curTime = Date.now() / 1000;
204204

205-
for (const { email, expiry, first_name, last_name } of rows)
206-
emailsInDb[parseEmailForComparing(email)] = {
207-
expired: expiry < curTime,
208-
firstName: first_name,
209-
lastName: last_name,
205+
for (const row of rows)
206+
emailsInDb[parseEmailForComparing(row.get("email"))] = {
207+
expired: row.get("expiry") < curTime,
208+
firstName: row.get("first_name"),
209+
lastName: row.get("last_name"),
210210
};
211211

212212
return emailsInDb;

components/membership-form-frontend/cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ steps:
44
entrypoint: gsutil
55
args: ["cp", "components/membership-form-frontend/environments/env.$PROJECT_ID.js", "components/membership-form-frontend/env.js"]
66
# Deploy to firebase
7-
- name: gcr.io/$PROJECT_ID/firebase:latest
7+
- name: gcr.io/$PROJECT_ID/firebase
88
dir: "components/membership-form-frontend"
99
args: ['deploy', '--project=$PROJECT_ID', '--only=hosting']

0 commit comments

Comments
 (0)