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