feat: 예약 명령 처리 로직 개선 및 완료 콜백 추가

This commit is contained in:
2026-08-28 15:55:39 +00:00
parent e6873f813a
commit fa9fe71539
7 changed files with 58 additions and 34 deletions
+6 -2
View File
@@ -183,8 +183,12 @@ const shiftGeneralTurns = (amount: number) => {
void dashboard.shiftGeneralTurns(amount);
};
const reserveGeneralTurns = (entries: CommandPatternEntry[]) => {
void dashboard.setGeneralTurns(entries);
const reserveGeneralTurns = async (
entries: CommandPatternEntry[],
complete?: (success: boolean) => void
) => {
const success = await dashboard.setGeneralTurns(entries);
complete?.(success);
};
const repeatGeneralTurns = (amount: number) => {