mirror of
https://github.com/grafana/grafana.git
synced 2025-01-18 04:23:33 -06:00
fixes 1606 emit OrgCreated event when new org created.
This commit is contained in:
parent
2a1434ce49
commit
068ccf1c0f
@ -55,7 +55,11 @@ 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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user