Commit 59fc10b
fix: filter deactivated members from activity query and clamp inactiveDays
- Add deactivated:false to members query in getOrgActivity so deactivated
users don't inflate lastSession or get picked as owner
- Clamp inactiveDays to non-negative to prevent future-dated cutoffs
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8b8270b commit 59fc10b
2 files changed
Lines changed: 2 additions & 1 deletion
File tree
- apps/api/src/admin-organizations
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| |||
0 commit comments