diff --git a/functions/sendgrid/index.js b/functions/sendgrid/index.js index a8327a2499..bb79508565 100644 --- a/functions/sendgrid/index.js +++ b/functions/sendgrid/index.js @@ -271,10 +271,9 @@ exports.sendgridWebhook = function sendgridWebhook (req, res) { */ function getTable () { const dataset = bigquery.dataset(config.DATASET); - const options = { autoCreate: true }; - return dataset.get(options) - .then(([dataset]) => dataset.table(config.TABLE).get(options)); + return dataset.get({ autoCreate: true }) + .then(([dataset]) => dataset.table(config.TABLE).get({ autoCreate: true })); } // [END functions_sendgrid_get_table]