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}`); 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"