@@ -34,8 +34,7 @@ public void createEasterEggVoice(Long sceneId, MultipartFile voiceFile, EasterEg
3434 validateParent ();
3535 Scene scene = findScene (sceneId );
3636
37- // String voiceUrl = s3Manager.uploadFile(voiceFile, "eastereggs/audios"); 추후에 이걸로 수정할 예정
38- String voiceUrl = voiceFile .getOriginalFilename ();
37+ String voiceUrl = s3Manager .uploadFile (voiceFile , "eastereggs/audios" );
3938
4039 EasterEggVoice voice = EasterEggVoice .builder ()
4140 .scene (scene )
@@ -56,7 +55,7 @@ public void deleteEasterEggVoice(Long sceneId){
5655 .orElseThrow (()-> new NotFoundHandler (ErrorStatus .EASTER_EGG_VOICE_NOT_FOUND ));
5756 Scene scene = voice .getScene ();
5857 scene .setEasterEggVoice (null );
59- // s3Manager.deleteFile(voice.getVoiceFile()); 추후에 주석 해제 예정
58+ s3Manager .deleteFile (voice .getVoiceFile ());
6059 easterEggVoiceRepository .delete (voice );
6160 log .info ("삭제 완료: audioId = {}" , voice .getId ());
6261 }
@@ -75,10 +74,10 @@ public String getVoiceUrl(Long sceneId, EasterEggVoiceRequestDto requestDto) {
7574 private boolean isInsideArea (EasterEggVoice voice , float clickX , float clickY ) {
7675 float xLeft = voice .getXCoordinate () - voice .getWidth ();
7776 float xRight = voice .getXCoordinate () + voice .getWidth ();
78- float yTop = voice .getYCoordinate () - voice .getHeight ();
79- float yBottom = voice .getYCoordinate () + voice .getHeight ();
77+ float yTop = voice .getYCoordinate () + voice .getHeight ();
78+ float yBottom = voice .getYCoordinate () - voice .getHeight ();
8079
81- return clickX >= xLeft && clickX <= xRight && clickY > = yTop && clickY < = yBottom ;
80+ return clickX >= xLeft && clickX <= xRight && clickY < = yTop && clickY > = yBottom ;
8281 }
8382
8483 @ Transactional (readOnly = true )
0 commit comments