Skip to content

Commit

Permalink
Limit company metrics (#250) (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorgomezv authored Oct 12, 2023
1 parent ce4c221 commit 5a1c1e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/companies/repositories/company-states.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ export class CompanyStatesRepository {
.match({
companyUuid,
timestamp: { $gte: sub(new Date(), { years: 1 }) },
enterpriseToRevenue: { $ne: [NaN, 0] },
enterpriseToEbitda: { $ne: [NaN, 0] },
peg: { $ne: [NaN, 0] },
enterpriseToRevenue: { $ne: NaN, $gt: 0, $exists: true },
enterpriseToEbitda: { $ne: NaN, $gt: 0, $exists: true },
peg: { $ne: NaN, $gt: 0, $exists: true },
})
.group({
_id: '$companyUuid',
Expand Down

0 comments on commit 5a1c1e4

Please sign in to comment.