feat: 국가 메타 업데이트 기능 추가 및 관련 로직 구현
This commit is contained in:
@@ -282,6 +282,18 @@ const normalizeCommand = (envelope: TurnDaemonCommandEnvelope): TurnDaemonComman
|
||||
top4,
|
||||
};
|
||||
}
|
||||
case 'setNationMeta': {
|
||||
if (typeof command.nationId !== 'number' || !command.updates || typeof command.updates !== 'object') {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
type: 'setNationMeta',
|
||||
requestId: envelope.requestId,
|
||||
nationId: command.nationId,
|
||||
updates: command.updates as Record<string, unknown>,
|
||||
expectedUpdatedAt: typeof command.expectedUpdatedAt === 'string' ? command.expectedUpdatedAt : undefined,
|
||||
};
|
||||
}
|
||||
case 'getStatus': {
|
||||
const requestId = typeof command.requestId === 'string' ? command.requestId : envelope.requestId;
|
||||
return { type: 'getStatus', requestId };
|
||||
|
||||
Reference in New Issue
Block a user