fix: 플레이 감사 기간을 실제 초기 달력으로 제한

This commit is contained in:
Hide_D committed 2026-09-16 04:07:56 +00:00
1 parent 31c5927449
commit 9e14306fe4
8 files changed
+160 -8

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ export const generalLogs = auditProcedure
const world = await readAuditWorld(tx);
if (
input.month &&
(input.month.year < world.startYear ||
(monthOrdinal(input.month.year, input.month.month) < monthOrdinal(world.startYear, world.startMonth) ||
monthOrdinal(input.month.year, input.month.month) > monthOrdinal(world.year, world.month))
) {
throw new TRPCError({ code: 'BAD_REQUEST', message: '현재 기수 안의 로그 월을 선택해 주세요.' });