Skip to content

Commit

Permalink
fix: async
Browse files Browse the repository at this point in the history
  • Loading branch information
tapiarafael committed Jan 10, 2024
1 parent 5906751 commit e9e7eb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions apps/meteor/app/statistics/server/lib/getAppsStatistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ export async function getAppsStatistics() {
totalActive: Apps.isInitialized() && (await Apps.getManager().get({ enabled: true })).length,
totalFailed:
Apps.isInitialized() &&
Apps.getManager()
.get({ disabled: true })
.filter(({ app: { status } }) => status !== AppStatus.MANUALLY_DISABLED).length,
(await Apps.getManager().get({ disabled: true })).filter(({ app: { status } }) => status !== AppStatus.MANUALLY_DISABLED).length,
};
}
3 changes: 1 addition & 2 deletions apps/meteor/ee/server/apps/orchestrator.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ export class AppServerOrchestrator {
await this.getManager().load();

// Before enabling each app we verify if there is still room for it
await this.getManager()
.get()
(await this.getManager().get())
// We reduce everything to a promise chain so it runs sequentially
.reduce(
(control, app) =>
Expand Down

0 comments on commit e9e7eb3

Please sign in to comment.