Add event after datasource create (#38467)

* Add event after datasource create
This commit is contained in:
Stephanie Hingtgen
2021-08-26 08:50:05 -05:00
committed by GitHub
parent 1ced2bc6df
commit 785072086c
3 changed files with 43 additions and 0 deletions
+8
View File
@@ -214,6 +214,14 @@ func AddDataSource(cmd *models.AddDataSourceCommand) error {
}
cmd.Result = ds
sess.publishAfterCommit(&events.DataSourceCreated{
Timestamp: time.Now(),
Name: cmd.Name,
ID: ds.Id,
UID: cmd.Uid,
OrgID: cmd.OrgId,
})
return nil
})
}