File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed
core/src/main/java/com/flowci/core Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ public void addInterceptors(InterceptorRegistry registry) {
8080 .addPathPatterns ("/configs/**" )
8181 .addPathPatterns ("/triggers/**" )
8282 .addPathPatterns ("/system/**" )
83+ .addPathPatterns ("/gitconfig/**" )
8384 .addPathPatterns ("/auth/logout" );
8485
8586 registry .addInterceptor (apiAuth )
Original file line number Diff line number Diff line change 1212
1313@ Log4j2
1414@ RestController
15- @ RequestMapping ("/gitsettings " )
15+ @ RequestMapping ("/gitconfig " )
1616public class GitConfigController {
1717
1818 @ Autowired
Original file line number Diff line number Diff line change @@ -44,9 +44,6 @@ public class GitServiceImpl implements GitService {
4444 @ Autowired
4545 private SpringEventManager eventManager ;
4646
47- @ Autowired
48- private SessionManager sessionManager ;
49-
5047 private final Map <GitSource , OperationHandler > handlers = new HashMap <>(5 );
5148
5249 @ PostConstruct
@@ -136,13 +133,11 @@ public GitConfig save(GitConfig config) {
136133 var optional = gitConfigDao .findBySource (GitSource .GITHUB );
137134 if (optional .isEmpty ()) {
138135 GitConfig c = new GitConfig (GitSource .GITHUB , secret .getName ());
139- c .setCreatedBy (sessionManager .getUserEmail ());
140136 return gitConfigDao .save (c );
141137 }
142138
143139 GitConfig c = optional .get ();
144140 c .setSecret (secret .getName ());
145- c .setUpdatedBy (sessionManager .getUserEmail ());
146141 return gitConfigDao .save (c );
147142 }
148143
You can’t perform that action at this time.
0 commit comments