Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] 업무카드 수정 API #200

Merged
merged 2 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
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 @@ -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
Loading