Skip to content

Commit

Permalink
Merge pull request #165 from kakao-tech-campus-2nd-step3/Weekly-10
Browse files Browse the repository at this point in the history
[Develop] [์œ ์ €์ •๋ณด] fix : ํšŒ์‚ฌ์ด๋ฏธ์ง€๊ฐ€ ๋ฐ์ดํ„ฐ์— ์—†๋Š” ๊ฒฝ์šฐ ์ฒ˜๋ฆฌ
  • Loading branch information
LeeTaek2T authored Nov 12, 2024
2 parents e5fc744 + 4330950 commit 25ca7bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public ResponseEntity<SignResponse> findSign(@LoginUser User user) {
@PostMapping(value = "/company", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public ResponseEntity<Void> createCompany(
@RequestPart("companyRequest") String companyRequestJson,
@RequestPart MultipartFile logoImage, @LoginUser User user) {
@RequestPart(required = false) MultipartFile logoImage, @LoginUser User user) {
ObjectMapper objectMapper = new ObjectMapper();
CompanyRequest companyRequest = null;
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public Long createCompany(CompanyRequest companyRequest, MultipartFile logoImage
byte[] imageFile = null;
String storedFileName = null;

if (logoImage.isEmpty() || logoImage.getOriginalFilename().equals("")) {
if (logoImage == null) {
storedFileName = defaultLogoUrl;
} else {
imageFile = fileUtil.safelyGetBytes(logoImage)
Expand Down

0 comments on commit 25ca7bf

Please sign in to comment.