提交 8bba55e4 编写于 作者: 7 710leo

fix node role save

上级 d6d2e32b
package models
import "fmt"
type NodeRole struct {
Id int64 `json:"id"`
NodeId int64 `json:"node_id"`
......@@ -18,7 +16,7 @@ func (nr *NodeRole) Save() error {
}
if cnt > 0 {
return fmt.Errorf("user already has this role")
return nil
}
_, err = DB["rdb"].Insert(nr)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册