차트 설정 수정
This commit is contained in:
@@ -7,12 +7,9 @@ export async function pinStrategyEvaluationTimeframes(
|
||||
market: string,
|
||||
strategyId: number,
|
||||
): Promise<string[]> {
|
||||
await syncStrategyTimeframesFromLayoutIfNeeded(strategyId);
|
||||
try {
|
||||
await repairStrategyTimeframes(strategyId);
|
||||
} catch {
|
||||
/* 서버 미배포·권한 등 — timeframes 조회만 진행 */
|
||||
}
|
||||
const synced = await syncStrategyTimeframesFromLayoutIfNeeded(strategyId);
|
||||
if (!synced) return ['1m'];
|
||||
await repairStrategyTimeframes(strategyId);
|
||||
const raw = await loadStrategyTimeframes(strategyId);
|
||||
const timeframes = [...new Set(raw.map(tf => normalizeStartCandleType(tf)))];
|
||||
if (timeframes.length === 0) timeframes.push('1m');
|
||||
|
||||
Reference in New Issue
Block a user