From 7054428821091fcf5c594203c479d5b763b3f467 Mon Sep 17 00:00:00 2001 From: Ace Nassri Date: Thu, 10 Oct 2019 18:30:54 -0400 Subject: [PATCH 1/2] Update BigQuery invocation Replica of #1482 with newer changes to master --- functions/sendgrid/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/sendgrid/index.js b/functions/sendgrid/index.js index 0007298d02..0ea745580e 100644 --- a/functions/sendgrid/index.js +++ b/functions/sendgrid/index.js @@ -329,7 +329,7 @@ exports.sendgridLoad = async event => { autodetect: true, sourceFormat: 'NEWLINE_DELIMITED_JSON', }; - const [job] = await table.import(fileObj, metadata); + const [job] = await table.load(fileObj, metadata); await job.promise(); console.log(`Job complete for ${file.name}`); From 09623a90bf1efec76880703ffc767f5e79a0edcb Mon Sep 17 00:00:00 2001 From: Ace Nassri Date: Thu, 10 Oct 2019 18:32:31 -0400 Subject: [PATCH 2/2] Update package.json --- functions/sendgrid/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/sendgrid/package.json b/functions/sendgrid/package.json index 313e8ea306..97a669063f 100644 --- a/functions/sendgrid/package.json +++ b/functions/sendgrid/package.json @@ -15,7 +15,7 @@ "test": "mocha test/*.test.js --timeout=20000" }, "dependencies": { - "@google-cloud/bigquery": "^4.0.0", + "@google-cloud/bigquery": "^4.3.0", "@google-cloud/storage": "^3.0.0", "sendgrid": "^5.2.3", "uuid": "^3.3.2"