Skip to content

Commit

Permalink
Update BigQuery invocation
Browse files Browse the repository at this point in the history
Replica of #1482 with newer changes to master
  • Loading branch information
Ace Nassri authored Oct 10, 2019
1 parent fd8efe7 commit 7054428
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 7054428

Please sign in to comment.