Commit 16a16428 by bergquist

gofmt...

parent 3da2ab61
......@@ -20,8 +20,6 @@ func init() {
bus.AddHandler("sql", GetDashboardsByPluginId)
}
func SaveDashboard(cmd *m.SaveDashboardCommand) error {
return inTransaction(func(sess *DBSession) error {
dash := cmd.GetDashboardModel()
......
......@@ -276,10 +276,10 @@ func TestDashboardDataAccess(t *testing.T) {
cmd := m.SaveDashboardCommand{
OrgId: 1,
Dashboard: simplejson.NewFromAny(map[string]interface{}{
"uid": "randomHash",
"title": "folderId",
"style": "light",
"tags": []interface{}{},
"uid": "randomHash",
"title": "folderId",
"style": "light",
"tags": []interface{}{},
}),
FolderId: 2,
}
......@@ -330,7 +330,7 @@ func TestDashboardDataAccess(t *testing.T) {
"version": savedDash.Version,
"tags": []interface{}{},
}),
FolderId: savedDash.FolderId,
FolderId: savedDash.FolderId,
Overwrite: true,
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment