Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
import com.devoops.exception.errorcode.ErrorCode;
import java.util.List;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Service
@RequiredArgsConstructor
public class RepositoryService {
Expand All @@ -21,6 +23,7 @@ public class RepositoryService {
private final PullRequestDomainRepository pullRequestRepository;

public GithubRepository save(RepositoryCreateCommand command) {
log.info("command: {}", command);
if (repoRepository.existsByExternalIdAndUserId(command.externalId(), command.userId())) {
throw new GssException(ErrorCode.ALREADY_SAVED_REPOSITORY);
}
Expand Down
Loading