From 4cade376b90bda29c3779f55349d672254abe65f Mon Sep 17 00:00:00 2001 From: Aditya Siregar Date: Wed, 13 Aug 2025 20:37:55 +0700 Subject: [PATCH] Add Category --- internal/handler/category_handler.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/handler/category_handler.go b/internal/handler/category_handler.go index 6f7d87e..0504d44 100644 --- a/internal/handler/category_handler.go +++ b/internal/handler/category_handler.go @@ -138,10 +138,12 @@ func (h *CategoryHandler) GetCategory(c *gin.Context) { func (h *CategoryHandler) ListCategories(c *gin.Context) { ctx := c.Request.Context() + contextInfo := appcontext.FromGinContext(ctx) req := &contract.ListCategoriesRequest{ - Page: 1, - Limit: 10, + Page: 1, + Limit: 10, + OrganizationID: &contextInfo.OrganizationID, } // Parse query parameters