diff --git a/web3-credential-server/src/main/java/web3/s3Storage/controller/S3StorageController.java b/web3-credential-server/src/main/java/web3/s3Storage/controller/S3StorageController.java index 9b3f1ca..beaee59 100644 --- a/web3-credential-server/src/main/java/web3/s3Storage/controller/S3StorageController.java +++ b/web3-credential-server/src/main/java/web3/s3Storage/controller/S3StorageController.java @@ -69,7 +69,7 @@ public ResponseEntity deleteCertForPage( @Parameter(description = "지울 지갑 ID",required = true) @RequestBody Long walletId, @Parameter(description = "지울 페이지 번호",required = true) - @RequestBody int page) { + @RequestBody int page) throws IOException { Wallet wallet = walletService.getWalletById(walletId).orElseThrow(()-> new EntityNotFoundException("Wallet does not exist")); s3StorageService.deletePdfForPage(wallet,page); return ResponseEntity.noContent().build(); diff --git a/web3-credential-server/src/main/java/web3/s3Storage/service/S3StorageService.java b/web3-credential-server/src/main/java/web3/s3Storage/service/S3StorageService.java index a95b293..5b9867f 100644 --- a/web3-credential-server/src/main/java/web3/s3Storage/service/S3StorageService.java +++ b/web3-credential-server/src/main/java/web3/s3Storage/service/S3StorageService.java @@ -351,7 +351,7 @@ public void deletePdfForPage(Wallet wallet, int pageNumberToRemove) throws IOExc byte[] finalPdfBytes = mergePdfs(frontPart,backPart); HashMap metadata = getPdfMetadata(fileName); - //메타데이터 수정 로직 필요 + metadata.remove("page-" + pageNumberToRemove); // 최종 PDF를 S3에 업로드 try {