Skip to content

Commit

Permalink
Limit company metrics (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorgomezv authored Oct 12, 2023
1 parent d251ef9 commit ce4c221
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 },
enterpriseToEbitda: { $ne: NaN },
peg: { $ne: NaN },
enterpriseToRevenue: { $ne: [NaN, 0] },
enterpriseToEbitda: { $ne: [NaN, 0] },
peg: { $ne: [NaN, 0] },
})
.group({
_id: '$companyUuid',
Expand Down

0 comments on commit ce4c221

Please sign in to comment.