update product

This commit is contained in:
aditya.siregar
2025-04-26 14:04:51 +07:00
parent 06d7b4764f
commit d77f7c7981
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -102,6 +102,10 @@ func (o *ProductDB) ToUpdatedProduct(updatedby int64, req Product) {
o.Name = req.Name
}
if req.Image != "" {
o.Image = req.Image
}
if req.Type != "" {
o.Type = req.Type
}