Skip to content

Commit

Permalink
feat: add tmp file deleting logic for recap api error case
Browse files Browse the repository at this point in the history
  • Loading branch information
gmkim20713 committed Nov 4, 2024
1 parent 0c29ec6 commit 0e6fc22
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public Mono<String> createRecap(String albumId, String requestMemberId, String s
.flatMap(recapUploadedPath ->
localFileService.deleteSimilarNameFileForPath(tmpPath, recapId)
.thenReturn(recapUploadedPath)
);
)
.doOnError(e -> localFileService.deleteSimilarNameFileForPath(tmpPath, recapId));
}

private Mono<String> generateRecapFrame(String recapId, String memberName, String albumType) {
Expand Down

0 comments on commit 0e6fc22

Please sign in to comment.