Skip to content

Commit 5488b72

Browse files
author
Víctor Martínez
committed
fix: searchAdminProperties import
1 parent 5fe61bf commit 5488b72

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/controllers/properties-controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const fetch = require("node-fetch");
22
const config = require("../config");
3-
const { getPropertyById } = require("../utils/properties");
3+
const { getPropertyById, searchAdminProperties } = require("../utils/properties");
44

55
async function getProperty(req, res, next) {
66
const { propertyId } = req.params;

src/routes/bookings-routes.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ const {
1717
bookingsRouter.post("/", auth(), validateNewBooking, bookProperty);
1818
bookingsRouter.delete("/:propertyId", auth(), cancelBooking);
1919
bookingsRouter.get("/all", auth(), getBookings);
20-
bookingsRouter.get("/employees/:eid", validateJWT, getBookingsByEmployeeId);
2120

21+
bookingsRouter.get("/employees/:eid", validateJWT, getBookingsByEmployeeId);
2222
bookingsRouter.post("/:propertyId", validateJWT, validateSetStatus, setStatus);
23-
2423
bookingsRouter.patch("/:propertyId", validateJWT, validateUpdateBookingAddress, updateBookingAddress);
2524

2625
module.exports = bookingsRouter;

0 commit comments

Comments
 (0)