Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fetch single product by id #573

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
Erasmus Tayviah (StarmannRassy)
[Adekolu Samuel Samixx](https://github.com/samixYasuke)
[Micheal Peter] (https://github.com/myconpeter)
[Uzochukwu Onyekwelu] (https://github.com/Uzo-Felix)
4 changes: 2 additions & 2 deletions src/controllers/ProductController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ class ProductController {
* description: The ID of the product to get
* responses:
* 200:
* description: Product retrieved successfully
* description: Product fetched successfully
* content:
* application/json:
* schema:
Expand Down Expand Up @@ -444,7 +444,7 @@ class ProductController {
if (product) {
res.status(200).json({
status_code: 200,
message: "Product retrieved successfully",
message: "Product fetched successfully",
data: product,
});
}
Expand Down
2 changes: 0 additions & 2 deletions src/routes/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ productRouter.delete(

productRouter.get(
"/organizations/:org_id/products/:product_id",
authMiddleware,
validOrgAdmin,
productController.getSingleProduct,
);

Expand Down
Loading