Default datasource and event system test

This commit is contained in:
Torkel Ödegaard committed 2015-01-09 11:01:37 +01:00
1 parent f99e1ba441
commit d562dcd90c
7 files changed
+140 -97

No files matched your search

+3 -2
View File
@@ -64,12 +64,13 @@ func AddDataSource(c *middleware.Context) {
cmd.AccountId = c.Account.Id
err := bus.Dispatch(&cmd)
if err != nil {
if err := bus.Dispatch(&cmd); err != nil {
c.JsonApiErr(500, "Failed to add datasource", err)
return
}
//bus.Publish(&m.DataSourceCreatedEvent{Account: c.GetAccountId(), })
c.JsonOK("Datasource added")
}