This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new c0217b04f fix(helper): fix api resp when getting scopes (#6223)
c0217b04f is described below
commit c0217b04f0b4a5a51c02dd84fb3a875f7e7b4226
Author: Lynwee <[email protected]>
AuthorDate: Wed Oct 11 20:23:00 2023 +0800
fix(helper): fix api resp when getting scopes (#6223)
---
backend/helpers/pluginhelper/api/scope_helper.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/backend/helpers/pluginhelper/api/scope_helper.go
b/backend/helpers/pluginhelper/api/scope_helper.go
index 6474c47fe..87df08fd3 100644
--- a/backend/helpers/pluginhelper/api/scope_helper.go
+++ b/backend/helpers/pluginhelper/api/scope_helper.go
@@ -88,11 +88,11 @@ func (c *ScopeApiHelper[Conn, Scope, Tr])
GetScopeList(input *plugin.ApiResource
}
func (c *ScopeApiHelper[Conn, Scope, Tr]) GetScope(input
*plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
- scope, err := c.GenericScopeApiHelper.GetScope(input)
+ scopeRes, err := c.GenericScopeApiHelper.GetScope(input)
if err != nil {
return nil, err
}
- return &plugin.ApiResourceOutput{Body: scope, Status: http.StatusOK},
nil
+ return &plugin.ApiResourceOutput{Body: scopeRes.Scope, Status:
http.StatusOK}, nil
}
func (c *ScopeApiHelper[Conn, Scope, Tr]) Delete(input
*plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {