라벨 다운로드 수정

This commit is contained in:
2026-02-11 11:37:36 +09:00
parent 83ef7e36ed
commit 81b0b55d57
2 changed files with 11 additions and 12 deletions

View File

@@ -31,7 +31,6 @@ import java.util.List;
import java.util.UUID;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.coyote.BadRequestException;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.domain.Page;
import org.springframework.http.MediaType;
@@ -386,9 +385,9 @@ public class LabelAllocateApiController {
@Parameter(example = "6d8d49dc-0c9d-4124-adc7-b9ca610cc394") @PathVariable UUID uuid)
throws IOException {
if (!labelAllocateService.isDownloadable(uuid)) {
throw new BadRequestException();
}
// if (!labelAllocateService.isDownloadable(uuid)) {
// throw new BadRequestException();
// }
String uid = labelAllocateService.findLearnUid(uuid);
Path zipPath = Paths.get(responsePath).resolve(uid + ".zip");