@xuda.io/xuda-dbs-plugin-xuda 1.0.140 → 1.0.141

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/studio.mjs +16 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-dbs-plugin-xuda",
3
- "version": "1.0.140",
3
+ "version": "1.0.141",
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
@@ -776,21 +776,22 @@ const query_db = async function (e, db, table_obj) {
776
776
 
777
777
  try {
778
778
  const result = await db.createIndex(mango_index_obj);
779
- const monitor_indexing = async function () {
780
- return new Promise((resolve, reject) => {
781
- db.on("indexing", function (event) {
782
- // called when indexes are updated
783
- console.log("indexes event", event);
784
- // resolve();
785
- });
786
- setTimeout(() => {
787
- resolve();
788
- }, 5000);
789
- });
790
- };
791
- await monitor_indexing();
792
- const doc = await db.find(opt);
793
- return await done(doc);
779
+ // const monitor_indexing = async function () {
780
+ // return new Promise((resolve, reject) => {
781
+ // db.on("indexing", function (event) {
782
+ // // called when indexes are updated
783
+ // console.log("indexes event", event);
784
+ // // resolve();
785
+ // });
786
+ // setTimeout(() => {
787
+ // resolve();
788
+ // }, 5000);
789
+ // });
790
+ // };
791
+ // await monitor_indexing();
792
+ throw "creating index";
793
+ // const doc = await db.find(opt);
794
+ // return await done(doc);
794
795
  } catch (err) {
795
796
  return { code: -1, data: err.message };
796
797
  }