@xuda.io/xuda-dbs-plugin-xuda 1.0.71 → 1.0.73
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 +2 -2
package/package.json
CHANGED
package/server.js
CHANGED
@@ -1000,7 +1000,7 @@ exports.create = async (params, setup_doc, resolve, reject) => {
|
|
1000
1000
|
doc.udfIndex = index_ret.data;
|
1001
1001
|
const ret = await check_unique(e, doc, table_obj, db, app_id_reference);
|
1002
1002
|
if (ret.code < 0) {
|
1003
|
-
return ret;
|
1003
|
+
return reject(ret.data);
|
1004
1004
|
}
|
1005
1005
|
try {
|
1006
1006
|
const body = await db.insert(doc);
|
@@ -1857,6 +1857,6 @@ exports.test_connection = async (params, setup_doc, resolve, reject) => {
|
|
1857
1857
|
await nano.get("_design/xuda");
|
1858
1858
|
resolve(nano);
|
1859
1859
|
} catch (err) {
|
1860
|
-
return reject(err.message);
|
1860
|
+
return reject(err.message || err);
|
1861
1861
|
}
|
1862
1862
|
};
|