Skip to content

Commit 6061aa0

Browse files
committed
Fix linting in parameters controller
1 parent 265b78a commit 6061aa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/controllers/parametersController.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const updateParameters = async (req, res) => {
2020
}
2121

2222
// Check if preset is existing
23-
if (!parameters.parameters.hasOwnProperty(preset_name)) {
23+
if (!Object.prototype.hasOwnProperty.call(parameters.parameters, preset_name)) {
2424
return res.status(400).json({ message: "Preset is not found" });
2525
}
2626

0 commit comments

Comments
 (0)