summaryrefslogtreecommitdiff
path: root/owner
diff options
context:
space:
mode:
authorVitaly Minko <vitaly.minko@gmail.com>2018-10-04 16:42:55 +0300
committerVitaly Minko <vitaly.minko@gmail.com>2018-10-04 16:42:55 +0300
commit2bd4b2fbeca4e1c7462b067af2a51c8868d63e17 (patch)
treef73cb8cb4dc430fe15a6fe59b59f82addea1de06 /owner
parent102e0f22429c7484ed20bd9253a6ca79e080387b (diff)
Implemented business logic for transmitting dependent entities.
Diffstat (limited to 'owner')
-rw-r--r--owner/owner.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/owner/owner.go b/owner/owner.go
index 4f1f025..58c977f 100644
--- a/owner/owner.go
+++ b/owner/owner.go
@@ -94,7 +94,7 @@ func Register(dir, nickname, info string, subs subs.Subscriptions, s *storage.St
log.Debugf("Dumping emerged User %s:", nickname)
log.Debug(user.String())
- err = s.PutUser(user, nil)
+ err = s.PutEntity((entity.Entity)(user), nil)
if err != nil {
log.Errorf("Can't add user '%s' to the storage: %v", user.Nickname(), err)
return errors.Database