airqo-platform / airqo-platform/AirQo-api
Remove unused pre-save hook in MaintenanceSchema
未關閉
- 主要語言
- JavaScript
- 星號
- 26
- 分支
- 24
- 平均合併
- 5 小時 36 分鐘
- 30 天內合併 PR
- 81
描述
In the file `src/auth-service/models/Maintenance.js`, there is an empty pre-save hook that serves no purpose:
```javascript
MaintenanceSchema.pre("save", function (next) {
return next();
});
```
This unnecessary code should be removed to keep the codebase clean and maintainable.
This issue was identified during code review of PR #3666 by @Baalmart.
[View the PR](https://github.com/airqo-platform/AirQo-api/pull/3666)
[View the comment](https://github.com/airqo-platform/AirQo-api/pull/3666#discussion_r1803344340)
貢獻指南
評估
這個 Issue 還沒有評估資料。