Commit dace35d3 by Torkel Ödegaard

Missed setting account name

parent 37523791
...@@ -72,7 +72,9 @@ func CreateAccount(cmd *m.CreateAccountCommand) error { ...@@ -72,7 +72,9 @@ func CreateAccount(cmd *m.CreateAccountCommand) error {
_, err := sess.Insert(&user) _, err := sess.Insert(&user)
cmd.Result = account cmd.Result = account
sess.publishAfterCommit(&events.AccountCreated{}) sess.publishAfterCommit(&events.AccountCreated{
Name: account.Name,
})
// silently ignore failures to publish events. // silently ignore failures to publish events.
_ = bus.Publish(&m.Notification{ _ = bus.Publish(&m.Notification{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment