FIX[BE] : fix productwarehouses flags faram become multiple param

This commit is contained in:
aguhh18
2025-10-24 13:29:37 +07:00
parent 7f2175a8cf
commit ef99a4a3c1
4 changed files with 51 additions and 5 deletions
@@ -28,6 +28,7 @@ func (u *ProductWarehouseController) GetAll(c *fiber.Ctx) error {
Limit: c.QueryInt("limit", 10),
ProductId: uint(c.QueryInt("product_id", 0)),
WarehouseId: uint(c.QueryInt("warehouse_id", 0)),
Flags: c.Query("flags", ""),
}
if query.Page < 1 || query.Limit < 1 {