@xuda.io/xuda-dbs-plugin-xuda 1.0.115 → 1.0.116
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/studio.mjs +3 -3
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@xuda.io/xuda-dbs-plugin-xuda",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.116",
|
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/studio.mjs
CHANGED
@@ -1291,7 +1291,7 @@ export const create = async (params, resolve, reject) => {
|
|
1291
1291
|
if (index_ret < 0) throw index_ret.data;
|
1292
1292
|
doc.udfIndex = index_ret.data;
|
1293
1293
|
|
1294
|
-
const ret = await
|
1294
|
+
const ret = await check_unique(e, doc, table_obj, db);
|
1295
1295
|
if (ret.code < 0) {
|
1296
1296
|
throw ret;
|
1297
1297
|
}
|
@@ -1327,7 +1327,7 @@ export const create = async (params, resolve, reject) => {
|
|
1327
1327
|
return index_ret;
|
1328
1328
|
}
|
1329
1329
|
doc.udfIndex = index_ret.data;
|
1330
|
-
const ret = await
|
1330
|
+
const ret = await check_unique(e, doc, table_obj, db);
|
1331
1331
|
if (ret.code < 0) {
|
1332
1332
|
return reject(ret.data);
|
1333
1333
|
}
|
@@ -1423,7 +1423,7 @@ export const update = async (params, resolve, reject) => {
|
|
1423
1423
|
return index_ret;
|
1424
1424
|
}
|
1425
1425
|
doc.udfIndex = index_ret.data;
|
1426
|
-
const ret = await
|
1426
|
+
const ret = await check_unique(e, doc, table_obj, db);
|
1427
1427
|
if (ret.code < 0) {
|
1428
1428
|
return ret;
|
1429
1429
|
}
|