Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion functions/sendgrid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down
2 changes: 1 addition & 1 deletion functions/sendgrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down