fix: 플레이 감사 기간을 실제 초기 달력으로 제한
This commit is contained in:
1 parent
31c5927449
commit
9e14306fe4
8 files changed
+160
-8
No files matched your search
@@ -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: '현재 기수 안의 로그 월을 선택해 주세요.' });
|
||||
|
||||
Reference in new issue
Block a user