adjust get data product suppliers

This commit is contained in:
giovanni
2026-04-06 23:38:27 +07:00
parent e6dc658046
commit 6f523b9709
@@ -30,6 +30,9 @@ func toSupplierProductDTOs(relations []entity.ProductSupplier) []SupplierProduct
if product.Id == 0 {
continue
}
if len(product.Flags) == 0 {
continue
}
flags := make([]string, len(product.Flags))
for i, f := range product.Flags {