diff --git a/src/controllers/storeController.js b/src/controllers/storeController.js index f724c4f9..2b949b95 100644 --- a/src/controllers/storeController.js +++ b/src/controllers/storeController.js @@ -2785,7 +2785,7 @@ exports.getPendingOrdersByInstallationId = async (req, reply) => { } }; -exports.getPendingOrdersByInstallationId = async (req, reply) => { +exports.getCompleteOrdersByInstallationId = async (req, reply) => { try { const { installationId } = req.params; diff --git a/src/routes/storeRoute.js b/src/routes/storeRoute.js index c83b29fc..c5eb7396 100644 --- a/src/routes/storeRoute.js +++ b/src/routes/storeRoute.js @@ -2036,7 +2036,7 @@ fastify.get("/api/Completeordersofinstall/:installationId", { }, ], }, - handler: storeController.getPendingOrdersByInstallationId, + handler: storeController.getCompleteOrdersByInstallationId, }); fastify.post(