GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Enable auto table creation in Google Cloud Functions SendGrid tutoria… · enterstudio/nodejs-docs-samples@4bb9f00

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • functions/sendgrid
    • index.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎functions/sendgrid/index.js‎

Copy file name to clipboardExpand all lines: functions/sendgrid/index.js
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,9 @@ exports.sendgridWebhook = function sendgridWebhook (req, res) {
271271
*/
272272
function getTable () {
273273
const dataset = bigquery.dataset(config.DATASET);
274-
const options = { autoCreate: true };
275274

276-
return dataset.get(options)
277-
.then(([dataset]) => dataset.table(config.TABLE).get(options));
275+
return dataset.get({ autoCreate: true })
276+
.then(([dataset]) => dataset.table(config.TABLE).get({ autoCreate: true }));
278277
}
279278
// [END functions_sendgrid_get_table]
280279

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.