The custom sanitizers for id and site_id in sites.js convert input values to ObjectId. These lines are not currently covered by tests. To ensure the sanitization logic works as intended and to prevent potential issues, please consider adding unit tests for these sanitizers.
The custom sanitizers for
id
andsite_id
insites.js
convert input values toObjectId
. These lines are not currently covered by tests. To ensure the sanitization logic works as intended and to prevent potential issues, please consider adding unit tests for these sanitizers.PR: https://github.com/airqo-platform/AirQo-api/pull/3489 Comment: https://github.com/airqo-platform/AirQo-api/pull/3489#discussion_r1771370131
Requested by: @Baalmart