Commit bce62c49 by Anthony Woods

fixes #1606

parent 7235bd19
...@@ -55,11 +55,13 @@ func getOrgIdForNewUser(userEmail string, sess *session) (int64, error) { ...@@ -55,11 +55,13 @@ func getOrgIdForNewUser(userEmail string, sess *session) (int64, error) {
if _, err := sess.Insert(&org); err != nil { if _, err := sess.Insert(&org); err != nil {
return 0, err return 0, err
} }
sess.publishAfterCommit(&events.OrgCreated{ sess.publishAfterCommit(&events.OrgCreated{
Timestamp: org.Created, Timestamp: org.Created,
Id: org.Id, Id: org.Id,
Name: org.Name, Name: org.Name,
}) })
return org.Id, nil return org.Id, nil
} }
......
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