Sfoglia il codice sorgente

Missed setting account name

Torkel Ödegaard 11 anni fa
parent
commit
dace35d31d
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      pkg/services/sqlstore/account.go

+ 3 - 1
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{