airqo-platform / airqo-platform/AirQo-api
Refactor method in
未关闭
- 主要语言
- JavaScript
- 星标
- 26
- 派生
- 24
- 平均合并
- 5 小时 36 分钟
- 30 天内合并 PR
- 81
描述
The method in `src/device-registry/utils/create-event.js` can be refactored to improve error handling and code reuse.
Consider extracting common cache handling logic, defining constants for cache timeouts, and adding input validation for `site_id`.
Refer to PR [#3762](https://github.com/airqo-platform/AirQo-api/pull/3762) and [this comment](https://github.com/airqo-platform/AirQo-api/pull/3762#discussion_r1816402973).
Requested by @Baalmart.
贡献指南
评估
这个 Issue 还没有评估数据。