airqo-platform / airqo-platform/AirQo-api
Refactor filters for 'last_active' and 'last_active_after' in generateFilter utility
Offen
- Vorherrschende Sprache
- JavaScript
- Sterne
- 26
- Forks
- 24
- Ø Merge
- 5 Std. 36 Min.
- Gemergte PRs (30 T.)
- 81
Beschreibung
The implementation of `last_active` and `last_active_after` in the `generateFilter` utility sets the same filter condition. To improve clarity and maintainability, consider combining these conditions to reduce code duplication and enhance readability.
**Pull Request**: https://github.com/airqo-platform/AirQo-api/pull/3489
**Comment**: https://github.com/airqo-platform/AirQo-api/pull/3489#discussion_r1771708574
**Requested by**: @Baalmart
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.