@gudhub/core 1.1.21 → 1.1.23

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.
@@ -309,6 +309,13 @@ export class AppProcessor {
309
309
  return newApp;
310
310
  }
311
311
 
312
+ async getAppViews(app_id) {
313
+ if(app_id) {
314
+ const app = await this.getApp(app_id);
315
+ return app.views_list;
316
+ }
317
+ }
318
+
312
319
  clearAppProcessor() {
313
320
  this.getAppListPromises = null;
314
321
  this.getAppPromises = {};
@@ -379,13 +386,6 @@ export class AppProcessor {
379
386
  }
380
387
  });
381
388
 
382
- this.pipeService.onRoot("gh_app_views_get", {}, async (event, data) => {
383
- if (data && data.app_id) {
384
- const app = await this.getApp(data.app_id);
385
- this.pipeService.emit("gh_app_views_get", data, app.views_list);
386
- }
387
- });
388
-
389
389
  // Return app_name, app_id, app_icon
390
390
  this.pipeService.onRoot("gh_app_info_get", {}, async (event, data) => {
391
391
  const appInfo = await this.getAppInfo(data.app_id);
@@ -54,6 +54,7 @@ export class FieldProcessor {
54
54
  return item;
55
55
  });
56
56
  this.storage.updateApp(app);
57
+ return true;
57
58
  }
58
59
 
59
60
  updateFieldInStorage(app_id, fieldModel) {
@@ -17,7 +17,6 @@
17
17
  |
18
18
  | ---------------------------- VIEW EVENTS -----------------------------------
19
19
  | 'gh_app_views_update' -
20
- | 'gh_app_views_get' -
21
20
  | 'gh_app_view_get' -
22
21
  | -------------------------- ITEM EVENTS ------------------------------------
23
22
  |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gudhub/core",
3
- "version": "1.1.21",
3
+ "version": "1.1.23",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {