update product
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user