From dace35d31daaf2ad258c47a5bb05393c2d196931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 4 Feb 2015 15:41:40 +0100 Subject: [PATCH] Missed setting account name --- pkg/services/sqlstore/account.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/services/sqlstore/account.go b/pkg/services/sqlstore/account.go index 4fddee071c0..30495199d6a 100644 --- a/pkg/services/sqlstore/account.go +++ b/pkg/services/sqlstore/account.go @@ -72,7 +72,9 @@ func CreateAccount(cmd *m.CreateAccountCommand) error { _, err := sess.Insert(&user) cmd.Result = account - sess.publishAfterCommit(&events.AccountCreated{}) + sess.publishAfterCommit(&events.AccountCreated{ + Name: account.Name, + }) // silently ignore failures to publish events. _ = bus.Publish(&m.Notification{