3
3
import com .leets .commitatobe .domain .commit .domain .Commit ;
4
4
import com .leets .commitatobe .domain .commit .domain .repository .CommitRepository ;
5
5
import com .leets .commitatobe .domain .commit .presentation .dto .response .CommitResponse ;
6
- import com .leets .commitatobe .domain .login .usecase .LoginCommandServiceImpl ;
7
6
import com .leets .commitatobe .domain .login .usecase .LoginQueryService ;
8
7
import com .leets .commitatobe .domain .user .domain .User ;
9
8
import com .leets .commitatobe .domain .user .domain .repository .UserRepository ;
10
9
import com .leets .commitatobe .domain .user .usecase .UserQueryService ;
11
10
import com .leets .commitatobe .global .exception .ApiException ;
12
11
import com .leets .commitatobe .global .response .code .status .ErrorStatus ;
13
- import com .leets .commitatobe .global .response .code .status .SuccessStatus ;
14
12
import jakarta .servlet .http .HttpServletRequest ;
15
13
import lombok .RequiredArgsConstructor ;
16
14
import org .springframework .security .core .userdetails .UsernameNotFoundException ;
@@ -29,7 +27,6 @@ public class FetchCommitsTest {
29
27
private final CommitRepository commitRepository ;
30
28
private final UserRepository userRepository ;
31
29
private final GitHubService gitHubService ; // GitHub API 통신
32
- private final LoginCommandServiceImpl loginCommandService ;
33
30
private final LoginQueryService loginQueryService ;
34
31
private final ExpService expService ;
35
32
private final UserQueryService userQueryService ;
@@ -82,7 +79,7 @@ public CommitResponse execute(HttpServletRequest request) {
82
79
throw new RuntimeException (e );
83
80
}
84
81
85
- return new CommitResponse ( SuccessStatus . _OK . getMessage () );
82
+ return CommitResponse . of ( true , user );
86
83
}
87
84
88
85
private void saveCommits (User user ) {
0 commit comments