mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
fixes #1606
This commit is contained in:
parent
7235bd19ea
commit
bce62c49d0
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user