ncutixavier/find-home

View on GitHub
src/controllers/houseControllers.js

Summary

Maintainability
A
0 mins
Test Coverage

Showing 0 of 2 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Wontfix

try {
const house = await House.findOne({ where: { id: req.params.id } })
return res.status(200).json({
house
})
Severity: Major
Found in src/controllers/houseControllers.js and 1 other location - About 1 hr to fix
src/controllers/houseControllers.js on lines 90..95

Similar blocks of code found in 2 locations. Consider refactoring.
Wontfix

if (updated) {
const updatedHouse = await House.findOne({ where: { id: req.params.id } })
return res.status(200).json({
updatedHouse
})
Severity: Major
Found in src/controllers/houseControllers.js and 1 other location - About 1 hr to fix
src/controllers/houseControllers.js on lines 70..75

There are no issues that match your filters.

Category
Status