This is an automated email from the ASF dual-hosted git repository.

lynwee 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 518f9cc6b fix(helpers): rename `Blueprint` to `Blueprints` (#6366)
518f9cc6b is described below

commit 518f9cc6b0de839e5853932755af78efb6fff9d5
Author: Lynwee <[email protected]>
AuthorDate: Tue Oct 31 11:41:34 2023 +0800

    fix(helpers): rename `Blueprint` to `Blueprints` (#6366)
---
 backend/helpers/srvhelper/scope_service_helper.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/backend/helpers/srvhelper/scope_service_helper.go 
b/backend/helpers/srvhelper/scope_service_helper.go
index d7197648c..977b420fc 100644
--- a/backend/helpers/srvhelper/scope_service_helper.go
+++ b/backend/helpers/srvhelper/scope_service_helper.go
@@ -33,7 +33,7 @@ import (
 type ScopePagination struct {
        Pagination   `mapstructure:",squash"`
        ConnectionId uint64 `json:"connectionId" mapstructure:"connectionId" 
validate:"required"`
-       Blueprint    bool   `json:"blueprint" mapstructure:"blueprint"`
+       Blueprints   bool   `json:"blueprints" mapstructure:"blueprints"`
 }
 
 type ScopeDetail[S plugin.ToolLayerScope, SC plugin.ToolLayerScopeConfig] 
struct {
@@ -131,7 +131,7 @@ func (scopeSrv *ScopeSrvHelper[C, S, SC]) 
GetScopesPage(pagination *ScopePaginat
                        Scope:       scope,
                        ScopeConfig: 
scopeSrv.getScopeConfig(scope.ScopeScopeConfigId()),
                }
-               if pagination.Blueprint {
+               if pagination.Blueprints {
                        scopeDetail.Blueprints = 
scopeSrv.getAllBlueprinsByScope(scope.ScopeConnectionId(), scope.ScopeId())
                }
                data[i] = scopeDetail

Reply via email to