플레이 감사 국가 생멸과 장기 tick 저장을 보완하고 중간 전달 준비

This commit is contained in:
2026-09-16 07:26:05 +00:00
parent ae0dfd503f
commit 52cea882ab
24 changed files with 428 additions and 46 deletions
+2 -1
View File
@@ -133,7 +133,7 @@ export const findAuditMonth = async (
throw new TRPCError({ code: 'BAD_REQUEST', message: '현재 기수의 게임 연월을 선택해 주세요.' });
}
if (!world.serverId) return null;
return tx.playAuditMonth.findUnique({
const sample = await tx.playAuditMonth.findUnique({
where: {
serverId_year_month_kind: {
serverId: world.serverId,
@@ -152,6 +152,7 @@ export const findAuditMonth = async (
createdAt: true,
},
});
return sample ? { ...sample, tick: sample.tick?.toString() ?? null } : null;
};
export const pageResult = <T>(