fix: api 호출 순서가 거꾸로
This commit is contained in:
@@ -14,7 +14,7 @@ import { sammoAPI, ValidResponse } from './util/sammoAPI';
|
|||||||
declare const turnList: number[];
|
declare const turnList: number[];
|
||||||
|
|
||||||
async function submitCommand<T extends ValidResponse>(isChiefTurn: boolean, turnList: number[], action: string, arg: Args): Promise<T> {
|
async function submitCommand<T extends ValidResponse>(isChiefTurn: boolean, turnList: number[], action: string, arg: Args): Promise<T> {
|
||||||
const target = isChiefTurn ? 'Command/ReserveCommand' : 'NationCommand/ReserveCommand';
|
const target = isChiefTurn ? 'NationCommand/ReserveCommand' : 'Command/ReserveCommand';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const testResult = testSubmitArgs(arg);
|
const testResult = testSubmitArgs(arg);
|
||||||
|
|||||||
Reference in New Issue
Block a user