From dbb05ca1cc26f42bbf1d03304dcfd04e37fab517 Mon Sep 17 00:00:00 2001 From: Douglas Gubert Date: Thu, 28 Oct 2021 22:54:00 -0300 Subject: [PATCH 1/2] Update method call for Apps-Engine method --- app/apps/server/communication/websockets.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/apps/server/communication/websockets.js b/app/apps/server/communication/websockets.js index 8be3edc38e0e..dd8da2b64c89 100644 --- a/app/apps/server/communication/websockets.js +++ b/app/apps/server/communication/websockets.js @@ -71,7 +71,8 @@ export class AppServerListener { const appPackage = await this.orch.getAppSourceStorage().fetch(storageItem); - await this.orch.getManager().update(appPackage); + await this.orch.getManager().updateLocal(storageItem, appPackage); + this.clientStreamer.emitWithoutBroadcast(AppEvents.APP_UPDATED, appId); } From b9ebfc15a0e21c402ee2774b792cc3817f3745e8 Mon Sep 17 00:00:00 2001 From: Douglas Gubert Date: Mon, 1 Nov 2021 16:00:17 -0300 Subject: [PATCH 2/2] Update Apps-Engine --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index d8bc7e649fd0..c679ed74f1db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5318,9 +5318,9 @@ } }, "@rocket.chat/apps-engine": { - "version": "1.28.0", - "resolved": "https://registry.npmjs.org/@rocket.chat/apps-engine/-/apps-engine-1.28.0.tgz", - "integrity": "sha512-ALrlGHVO1IhgAQ/rdZVS9nuPHwSE2VtPy3e2xbLzhMloZSpcG/ht9PPrDqIX6ZHHwiDxLbBd2/yT8vt86lXZeg==", + "version": "1.28.1", + "resolved": "https://registry.npmjs.org/@rocket.chat/apps-engine/-/apps-engine-1.28.1.tgz", + "integrity": "sha512-Cg3/sn/vkJ0tVBOmPysTj7syHMPOMWaBwzaumEO+U9oMhDyAAYU53itnV2oUw58fNveYprRracQBLhl8U/kDCg==", "requires": { "adm-zip": "^0.4.9", "cryptiles": "^4.1.3", diff --git a/package.json b/package.json index cdd13b6d6306..77fd4943a19b 100644 --- a/package.json +++ b/package.json @@ -160,7 +160,7 @@ "@nivo/heatmap": "0.73.0", "@nivo/line": "0.62.0", "@nivo/pie": "0.73.0", - "@rocket.chat/apps-engine": "1.28.0", + "@rocket.chat/apps-engine": "^1.28.1", "@rocket.chat/css-in-js": "^0.30.1", "@rocket.chat/emitter": "^0.30.1", "@rocket.chat/fuselage": "^0.30.1",