overmindbots / core

Core monorepo with our apps and packages
1 stars 0 forks source link

chore: improve logging for debugging purposes #90

Closed monitz87 closed 6 years ago

monitz87 commented 6 years ago

affects: @overmindbots/service-referral-ranks-invites

Transformed noNewUsesThreshold into an ENV variable Made logs more readable, informative and frequent Rewrote calculateDelta and calculateUsedInvites, they were redundant Fix certainty calculation when an invite has more than one new use Reset noNewUsesCount when delta is greater than 0

ISSUES CLOSED: #71, #62