airqo-platform / airqo-platform/AirQo-api

Refactor method in

未关闭
#3,771 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。