Commit bce62c49 by Anthony Woods

fixes #1606

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