remove dashboardId check... i can't figure out how the tests work

This commit is contained in:
ryan
2018-03-23 12:54:53 +01:00
parent e92ea79524
commit 7defb1adf5
2 changed files with 4 additions and 10 deletions
-5
View File
@@ -63,11 +63,6 @@ func PostAnnotation(c *m.ReqContext, cmd dtos.PostAnnotationsCmd) Response {
return ApiError(500, "Failed to save annotation", err)
}
if cmd.DashboardId == 0 {
err := &CreateAnnotationError{"Missing DashboardID"}
return ApiError(500, "Failed to save annotation", err)
}
item := annotations.Item{
OrgId: c.OrgId,
UserId: c.UserId,