Skip to content

Commit

Permalink
change: Making the bills sort in the email digest computation more le…
Browse files Browse the repository at this point in the history
…gible by grouping the counts by bill
  • Loading branch information
Mephistic committed Jan 29, 2025
1 parent 1d5002e commit 15ca1d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions functions/src/notifications/deliverNotifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ const buildDigestData = async (user: User, userId: string, now: Timestamp) => {
b.endorseCount +
b.neutralCount +
b.opposeCount -
a.endorseCount -
a.neutralCount -
a.opposeCount
(a.endorseCount + a.neutralCount + a.opposeCount)
)
})

Expand Down

0 comments on commit 15ca1d7

Please sign in to comment.