Skip to content

Commit

Permalink
Merge pull request #200 from Katchup-dev/fix/#198
Browse files Browse the repository at this point in the history
[Fix] 업무카드 수정 API
  • Loading branch information
unanchoi authored Nov 9, 2023
2 parents 25aab41 + b24a84d commit d4a1ba7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ public void updateCard(Long memberId, Long cardId, CardUpdateRequestDto requestD
screenshotInfo.getScreenshotName()))
.url(screenshotService.findUrl(memberId, screenshotInfo))
.uploadDate(screenshotInfo.getScreenshotUploadDate())
.screenshotName(screenshotInfo.getScreenshotName())
.card(card)
.build();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
package site.katchup.katchupserver.external.s3;

import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import software.amazon.awssdk.auth.credentials.ProfileCredentialsProvider;
import software.amazon.awssdk.auth.credentials.SystemPropertyCredentialsProvider;
import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.s3.S3Client;
import software.amazon.awssdk.services.s3.S3Configuration;
import software.amazon.awssdk.services.s3.presigner.S3Presigner;


Expand All @@ -22,9 +19,9 @@ public class AWSConfig {
private final String secretKey;
private final String regionString;

public AWSConfig(@Value("${cloud.aws.credentials.accessKey}") final String accessKey,
@Value("${cloud.aws.credentials.secretKey}") final String secretKey,
@Value("${cloud.aws.region.static}") final String regionString) {
public AWSConfig(@Value("${aws-property.access-key}") final String accessKey,
@Value("${aws-property.secret-key}") final String secretKey,
@Value("${aws-property.aws-region}") final String regionString) {
this.accessKey = accessKey;
this.secretKey = secretKey;
this.regionString = regionString;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@RequiredArgsConstructor
public class S3Service {

@Value("${cloud.aws.s3.bucket}")
@Value("${aws-property.s3-bucket-name}")
private String bucketName;

private final AWSConfig awsConfig;
Expand Down

0 comments on commit d4a1ba7

Please sign in to comment.