Skip to content

Commit

Permalink
docs: fixed example for table.upsert() (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
sulaysumaria authored and callmehiphop committed Feb 19, 2019
1 parent 30db9ae commit 90f2388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ class Table {
* Name: 'Joe West'
* };
*
* table.update(row, function(err, apiResponse) {
* table.upsert(row, function(err, apiResponse) {
* if (err) {
* // Error handling omitted.
* }
Expand All @@ -739,7 +739,7 @@ class Table {
* //-
* // If the callback is omitted, we'll return a Promise.
* //-
* table.update(row)
* table.upsert(row)
* .then(function(data) {
* const apiResponse = data[0];
* });
Expand Down

0 comments on commit 90f2388

Please sign in to comment.