@xuda.io/xuda-dbs-plugin-xuda 1.0.67 → 1.0.69
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.
- package/package.json +1 -1
- package/server.js +10 -8
- package/setup.mjs +1 -1
package/package.json
CHANGED
package/server.js
CHANGED
@@ -222,11 +222,12 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
|
|
222
222
|
|
223
223
|
rows.push({
|
224
224
|
id: val._id,
|
225
|
-
value:
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
225
|
+
value: data,
|
226
|
+
// value: {
|
227
|
+
// udfData: { data: data },
|
228
|
+
// _id: val._id,
|
229
|
+
// _rev: val._rev,
|
230
|
+
// },
|
230
231
|
});
|
231
232
|
}
|
232
233
|
|
@@ -529,7 +530,7 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
|
|
529
530
|
}
|
530
531
|
}
|
531
532
|
|
532
|
-
if (val.filterType === "
|
533
|
+
if (val.filterType === "string") {
|
533
534
|
switch (val.type) {
|
534
535
|
case "contains":
|
535
536
|
operator = "$regex";
|
@@ -886,7 +887,8 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
|
|
886
887
|
}
|
887
888
|
rows.push({
|
888
889
|
id: val.id,
|
889
|
-
value:
|
890
|
+
value: val.doc.udfData,
|
891
|
+
// value: { udfData: val.doc.udfData, _id: val.id },
|
890
892
|
});
|
891
893
|
}
|
892
894
|
|
@@ -1366,7 +1368,7 @@ exports.read = async (params, setup_doc, resolve, reject) => {
|
|
1366
1368
|
// }
|
1367
1369
|
// }
|
1368
1370
|
|
1369
|
-
// if (val.filterType === "
|
1371
|
+
// if (val.filterType === "string") {
|
1370
1372
|
// switch (val.type) {
|
1371
1373
|
// case "contains":
|
1372
1374
|
// operator = "$regex";
|