Chore: Deprecate ID in GetFolderQuery (#77647)

This commit is contained in:
Kat Yang
2023-11-15 10:30:00 -05:00
committed by GitHub
parent a640d9d395
commit 8d581b8358
7 changed files with 13 additions and 6 deletions
+1
View File
@@ -117,6 +117,7 @@ func (hs *HTTPServer) GetFolderByID(c *contextmodel.ReqContext) response.Respons
if err != nil {
return response.Error(http.StatusBadRequest, "id is invalid", err)
}
// nolint:staticcheck
folder, err := hs.folderService.Get(c.Req.Context(), &folder.GetFolderQuery{ID: &id, OrgID: c.SignedInUser.GetOrgID(), SignedInUser: c.SignedInUser})
if err != nil {
return apierrors.ToFolderErrorResponse(err)