@xuda.io/xuda-dbs-plugin-xuda 1.0.76 → 1.0.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-dbs-plugin-xuda",
3
- "version": "1.0.76",
3
+ "version": "1.0.77",
4
4
  "description": "Xuda Database Socket for Xuda's proprietary structure powered by CouchDB",
5
5
  "scripts": {
6
6
  "pub": "npm version patch --force && npm publish --access public"
package/server.js CHANGED
@@ -1722,8 +1722,8 @@ exports.update = async (params, setup_doc, resolve, reject) => {
1722
1722
  var doc = await db.get(e.row_id, {});
1723
1723
  // let data = doc.udfData.data;
1724
1724
  var error = undefined;
1725
- if (!e.field_id && !e.data) {
1726
- error = "Invalid field_id or data object to save";
1725
+ if (!e.field_id && !e.table_data) {
1726
+ error = "Invalid field_id or table_data object to save";
1727
1727
  return reject(error);
1728
1728
  }
1729
1729
  // single value save
@@ -1745,9 +1745,9 @@ exports.update = async (params, setup_doc, resolve, reject) => {
1745
1745
  );
1746
1746
  }
1747
1747
  // object value save
1748
- if (e.data) {
1748
+ if (e.table_data) {
1749
1749
  // data = {};
1750
- for await (const [key, val] of Object.entries(e.data)) {
1750
+ for await (const [key, val] of Object.entries(e.table_data)) {
1751
1751
  let _tableFieldsObj = find_item_by_key(
1752
1752
  table_obj.tableFields,
1753
1753
  "field_id",