Skip to content

Commit 5d42c26

Browse files
authored
fix: #8342 editing scopeConfig shows incorrect affected projects (#8351)
1 parent 80ec49b commit 5d42c26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/helpers/srvhelper/scope_config_service_helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (scopeConfigSrv *ScopeConfigSrvHelper[C, S, SC]) GetProjectsByScopeConfig(p
8888
dal.From("_devlake_blueprint_scopes bps"),
8989
dal.Join("LEFT JOIN _devlake_blueprints bp ON (bp.id = bps.blueprint_id)"),
9090
dal.Join(join),
91-
dal.Where("bps.plugin_name = ? AND bps.connection_id = ?", pluginName, (*scopeConfig).ScopeConfigConnectionId()),
91+
dal.Where("bps.plugin_name = ? AND bps.connection_id = ? AND scope_config_id = ?", pluginName, (*scopeConfig).ScopeConfigConnectionId(), (*scopeConfig).ScopeConfigId()),
9292
))
9393
projectScopeMap := make(map[string]*models.ProjectScope)
9494
for _, bps := range bpss {

0 commit comments

Comments
 (0)