fix: 시즌별 설문 알림 상태를 분리

설문 확인 cursor와 메인 실시간 탭 범위를 reset 고유 serverId로 구분한다. 설문 생성의 daemon 비의존 outbox 경로와 이전 시즌 cursor 회귀를 테스트한다.
This commit is contained in:
2026-08-19 12:20:26 +00:00
parent 17a3072ba7
commit 54a5b91ca9
9 changed files with 81 additions and 4 deletions
+5
View File
@@ -885,11 +885,16 @@ export const generalRouter = router({
})
: null;
const worldMeta = asRecord(worldState.meta);
const serverId =
typeof worldMeta.serverId === 'string' && worldMeta.serverId.trim()
? worldMeta.serverId.trim()
: ctx.profile?.name || 'game';
const rawLastExecuted = worldMeta.lastTurnTime ?? worldMeta.turntime;
const parsedLastExecuted =
typeof rawLastExecuted === 'string' || rawLastExecuted instanceof Date ? new Date(rawLastExecuted) : null;
return {
serverId,
onlineUserCount: onlineGenerals.length,
onlineNations,
onlineGenerals: myOnlineGenerals,
+1
View File
@@ -52,6 +52,7 @@ export const lobbyRouter = router({
}
return {
serverId: worldState.meta.serverId?.trim() || ctx.profile?.name || 'game',
year: worldState.currentYear,
month: worldState.currentMonth,
userCnt,