From 88cb70b1cb2fc931b703d5ab03cf137a66d0ff9f Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 25 Apr 2022 09:43:13 -0400 Subject: [PATCH] fix argument ordering (#48124) (#48191) (cherry picked from commit ea25f7e1ca8dd6485fa74db487d56185ccaee360) Co-authored-by: Ieva --- pkg/api/folder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/folder.go b/pkg/api/folder.go index faee784f8a8..94f187652a0 100644 --- a/pkg/api/folder.go +++ b/pkg/api/folder.go @@ -52,7 +52,7 @@ func (hs *HTTPServer) GetFolderByID(c *models.ReqContext) response.Response { if err != nil { return response.Error(http.StatusBadRequest, "id is invalid", err) } - folder, err := hs.folderService.GetFolderByID(c.Req.Context(), c.SignedInUser, c.OrgId, id) + folder, err := hs.folderService.GetFolderByID(c.Req.Context(), c.SignedInUser, id, c.OrgId) if err != nil { return apierrors.ToFolderErrorResponse(err) }