- replace literal 'admin' with const
This commit is contained in:
@@ -126,7 +126,7 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
|
||||
}
|
||||
if err == nil {
|
||||
if isNewComment {
|
||||
// dao.WrapAddIDCULEntity(orderComment, "admin")
|
||||
// dao.WrapAddIDCULEntity(orderComment, model.AdminName)
|
||||
err = dao.CreateEntity(db, comment2)
|
||||
} else if comment2 != nil {
|
||||
_, err = dao.UpdateEntity(db, comment2)
|
||||
|
||||
Reference in New Issue
Block a user