알림목록 지표로딩 문제 수정

This commit is contained in:
Macbook
2026-06-07 03:12:03 +09:00
parent ffecd7f01b
commit 9bde682b4e
2 changed files with 4 additions and 2 deletions
@@ -203,7 +203,8 @@ public class LiveConditionStatusService {
private void walk(JsonNode node, String timeframe, String side,
List<PendingCond> out, Set<String> seen) {
if (node == null || node.isNull()) return;
String type = node.path("type").asText("");
// StrategyDslToTa4jAdapter 와 동일하게 type 미설정 시 "CONDITION" 기본값 적용
String type = node.path("type").asText("CONDITION");
if ("TIMEFRAME".equals(type)) {
String tf = LiveStrategyTimeframeService.normalize(
@@ -47,7 +47,8 @@ function walk(
return;
}
if (node.type === 'CONDITION' && node.condition) {
// StrategyDslToTa4jAdapter 와 동일: type 미설정(구버전 DSL) 시 CONDITION 으로 처리
if ((!node.type || node.type === 'CONDITION') && node.condition) {
const c = node.condition;
const key = `${side}:${timeframe}:${c.indicatorType}:${c.conditionType}:${c.targetValue ?? ''}:${c.leftField ?? ''}`;
if (seen.has(key)) return;