fix: 턴 실패 사유를 실행 장수의 개인 기록에 남김
개인턴과 수뇌턴 공통 로그 생성 경로에서 generalId를 필수로 전달해 PostgreSQL 영속화 단계의 누락을 막는다. 비교 도구의 소유자 추론을 제거하고 단위, PostgreSQL, Chromium 회귀 검증을 추가한다.
This commit is contained in:
@@ -888,8 +888,10 @@ export const runCoreTurnCommandTrace = async (
|
||||
id: index + 1,
|
||||
scope: log.scope,
|
||||
category: log.category,
|
||||
generalId: log.generalId ?? (log.scope === 'GENERAL' ? actor.id : undefined),
|
||||
nationId: log.nationId ?? (log.scope === 'NATION' ? actor.nationId : undefined),
|
||||
// Keep the product draft unchanged. Inferring an owner here hid
|
||||
// GENERAL logs that finalizeLogEntry would reject in production.
|
||||
generalId: log.generalId,
|
||||
nationId: log.nationId,
|
||||
year: state.currentYear,
|
||||
month: state.currentMonth,
|
||||
text: log.text,
|
||||
|
||||
Reference in New Issue
Block a user