style(playlist): move dashboard access to dashboard.go

This commit is contained in:
bergquist
2016-01-29 01:41:23 +01:00
parent 64a18874e1
commit d27bb4d3fb
5 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ func populateDashboardsById(dashboardByIds []int64) ([]m.PlaylistDashboardDto, e
result := make([]m.PlaylistDashboardDto, 0)
if len(dashboardByIds) > 0 {
dashboardQuery := m.GetPlaylistDashboardsQuery{DashboardIds: dashboardByIds}
dashboardQuery := m.GetDashboardsQuery{DashboardIds: dashboardByIds}
if err := bus.Dispatch(&dashboardQuery); err != nil {
return result, errors.New("Playlist not found") //TODO: dont swallow error
}