Skip to content

Commit

Permalink
refactor: use new count method
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheartman committed Nov 6, 2024
1 parent ccd0d95 commit 8823318
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/lib/features/project-status/project-status-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,7 @@ export class ProjectStatusService {
] = await Promise.all([
this.projectStore.getConnectedEnvironmentCountForProject(projectId),
this.projectStore.getMembersCountByProject(projectId),
this.apiTokenStore
.getAll()
.then(
(tokens) =>
tokens.filter(
(token) =>
token.project === projectId ||
token.projects.includes(projectId),
).length,
),

this.apiTokenStore.countProjectTokens(projectId),
this.segmentStore.getProjectSegmentCount(projectId),
this.eventStore.getProjectRecentEventActivity(projectId),
]);
Expand Down

0 comments on commit 8823318

Please sign in to comment.