Skip to content

Commit

Permalink
update method works correct with data parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
swist666 committed Mar 17, 2021
1 parent 97b8988 commit 014bd99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function(columnName, value, newRow, sheet) {
return new Promise(function(resolve, reject) {
var xhr = new XMLHttpRequest();
var sheetParam = (!sheet) ? '' : '?sheet=' + sheet;
var data = JSON.stringify(newRow);
var data = JSON.stringify({data:newRow});

if(!columnName) {
reject('no column name');
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"name": "sheetdb-node",
"description": "Official SheetDB API bindings for Node.js",
"version": "0.0.11",
"version": "0.0.12",
"homepage": "https://github.com/sheetdb/sheetdb-node",
"repository": {
"type": "git",
Expand Down

0 comments on commit 014bd99

Please # to comment.