refactor: executors and routers
* refactor: executors and routers
This commit is contained in:
@@ -38,7 +38,11 @@ func (c Controller) GiveVotes(actor, acceptor string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c Controller) UpdateRelation(actor, acceptor string, rel game.Relation) error {
|
||||
func (c Controller) UpdateRelation(actor, acceptor string, v string) error {
|
||||
rel, ok := game.ParseRelation(v)
|
||||
if !ok {
|
||||
return e.NewUnknownRelationError(v)
|
||||
}
|
||||
ri, err := c.Cache.validActor(actor)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user