feat: port pre-start general deletion lifecycle

This commit is contained in:
2026-07-31 05:44:36 +00:00
parent f1929be3fe
commit 71ec02d091
24 changed files with 1257 additions and 160 deletions
+3 -2
View File
@@ -475,8 +475,9 @@ export const settleTournamentOutcome = async (options: {
if (result.type !== expectedType) {
throw new Error(`${expectedType} 명령에 잘못된 응답(${result.type})을 받았습니다.`);
}
if (!result.ok) {
throw new Error(`${expectedType} 명령이 실패했습니다: ${result.reason}`);
if (!('ok' in result) || !result.ok) {
const reason = 'reason' in result ? result.reason : '성공 여부가 없는 응답';
throw new Error(`${expectedType} 명령이 실패했습니다: ${reason}`);
}
};