parabol
parabol copied to clipboard
fix(usageStats): active teams definition
Description
Fixes #7054
An active team was defined by the team having a meeting.updatedAt being less than 30 days old. updatedAt is now replaced with endedAt/createdAt. Also, updated applied fixes to stop meeting.updatedAt from updating after the meeting has ended.
Test:
- [ ] goto /usage on staging, see parabol.co has 66 active teams (or just review the code, I know that's probably a heavy lift)
- [ ] end a meeting, then go back to it as facilitator & move around. the facilitator stage stays the same
- [ ] end a meeting, promote someone else to facilitator, you can't.