diff --git a/api/hub/src/datasources/profile.ts b/api/hub/src/datasources/profile.ts index 86594b8bcf..69f9cce3e4 100644 --- a/api/hub/src/datasources/profile.ts +++ b/api/hub/src/datasources/profile.ts @@ -218,6 +218,7 @@ class ProfileAPI extends DataSource { const exists1 = profile.followers.indexOf(profile1.pubKey); if (!profile || !profile1) { + logger.warn(`profile for ${pubKey} or ${ethAddress} was not found`); await t.end(); return false; } @@ -228,7 +229,8 @@ class ProfileAPI extends DataSource { if (exists1 === -1) { profile.followers.unshift(profile1.pubKey); } - await t.save([profile, profile1]); + await t.save([profile]); + await t.save([profile1]); await t.end(); const followingKey = this.getCacheKey(`${this.FOLLOWING_KEY}${profile1.pubKey}`); const followersKey = this.getCacheKey(`${this.FOLLOWERS_KEY}${profile.pubKey}`); @@ -260,6 +262,7 @@ class ProfileAPI extends DataSource { const exists = profile1.following.indexOf(profile.pubKey); const exists1 = profile.followers.indexOf(profile1.pubKey); if (!profile || !profile1) { + logger.warn(`profile for ${pubKey} or ${ethAddress} was not found`); await t.end(); return false; } @@ -271,7 +274,8 @@ class ProfileAPI extends DataSource { profile.followers.splice(exists1, 1); } - await t.save([profile, profile1]); + await t.save([profile]); + await t.save([profile1]); await t.end(); const followingKey = this.getCacheKey(`${this.FOLLOWING_KEY}${profile1.pubKey}`); diff --git a/ui/app-loader/src/index.ts b/ui/app-loader/src/index.ts index 6994df214e..cc5c39c450 100644 --- a/ui/app-loader/src/index.ts +++ b/ui/app-loader/src/index.ts @@ -664,7 +664,7 @@ export default class AppLoader { } await this.sdk.services.appSettings.uninstall(info.name); if (info.type === 'app') { - this.apps.uninstall(info); + await this.apps.uninstall(info); } if (info.type === 'widget') { this.widgets.uninstall(info); diff --git a/ui/app-loader/src/widgets.ts b/ui/app-loader/src/widgets.ts index 2f6cc8cbb1..166e632715 100644 --- a/ui/app-loader/src/widgets.ts +++ b/ui/app-loader/src/widgets.ts @@ -183,7 +183,7 @@ class Widgets extends BaseIntegration { return; } this.widgetConfigs[widgetInfo.name] = widgetConfig; - this.registerWidget(widgetConfig.name); + await this.registerWidget(widgetConfig.name); } else { this.logger.warn(`App ${widgetInfo.name} has no exported .register() function!`); } diff --git a/ui/typings/src/app-loader.ts b/ui/typings/src/app-loader.ts index 8b0d87cafd..fc49442667 100644 --- a/ui/typings/src/app-loader.ts +++ b/ui/typings/src/app-loader.ts @@ -229,7 +229,7 @@ export enum MenuItemType { } export enum MenuItemAreaType { - AppArea = 'app-area', // body of sideabr + AppArea = 'app-area', // body of sidebar QuickAccessArea = 'quick-access-area', // right of topbar BottomArea = 'bottom-area', // footer of sidebar SearchArea = 'search-area', // middle of topbar