Commit f3598f1
committed
fix: handle nil/missing deactivated_at field in UpdateProjectState filter
The DeactivatedAt field uses omitempty tag, so it may not exist in MongoDB
for members who were never deactivated. Changed the filter to use
$not $gt pattern which correctly matches:
- deactivated_at = 0
- deactivated_at = nil
- field doesn't exist
Addresses Copilot code review feedback.1 parent af7cdb2 commit f3598f1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
376 | | - | |
| 376 | + | |
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| |||
0 commit comments