Skip to content

Commit

Permalink
feat: 코드 깨지는 것 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
injoon2019 committed Sep 18, 2024
1 parent 12ea580 commit d211a4b
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,21 +162,22 @@ class AdminFacade(
}
}

// fun makeBlurImage() {
// userProfileService.findAllWithImage().forEach {
// val imageFile = amazonS3FileService.download(it.imageUrl!!, System.getProperty("java.io.tmpdir"))
// val blurImage = imageProcessor.blurImage(imageFile)
fun makeBlurImage() {
userProfileService.findAllWithImage().forEach {
val imageFile = amazonS3FileService.download(it.imageUrl!!, System.getProperty("java.io.tmpdir"))
val blurImage = imageProcessor.blurImage(imageFile)
// val key = makePathWithUserId(imageFile, it.user.id)
// amazonS3FileService.upload(blurImage, key)
// }
// }
}
}

fun makePathWithUserId(
file: MultipartFile,
userId: Long
) = "" + userId + FILE_NAME_DELIMITER + LocalDateTime.now()
.format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss")) + FILE_NAME_DELIMITER + file.originalFilename


companion object {
private const val FILE_NAME_DELIMITER = "_"
private const val mockMaleUserId = 1L
Expand Down

0 comments on commit d211a4b

Please sign in to comment.