fix(bugcollect): 修复 queryEvents 中 IssueEventResponse 构造参数不匹配
commit 8770f50 重构 IssueEventResponse 为 ExceptionInfo 嵌套结构(20→16字段),
但 queryEvents 方法的内联构造调用未同步更新,导致 Jenkins 构建失败:
constructor IssueEventResponse cannot be applied to given types
修复:将内联构造改为匹配新 record 的 16 参数调用,device 字段使用 parseJsonField 处理。
Co-Authored-By: Claude <noreply@anthropic.com>
这个提交包含在:
父节点
0a6ea7777e
当前提交
e0e8dcb092
@ -322,9 +322,10 @@ public class LogService {
|
||||
result = eventRepository.findByAppKeyAndCreatedAtBetween(appKey, fromDate, toDate, pageable);
|
||||
}
|
||||
return result.map(e -> new IssueEventResponse(
|
||||
e.getId(), null, null, e.getAppKey(), e.getUserId(), e.getSessionId(),
|
||||
null, null, e.getName(), null, null, null, e.getProperties(),
|
||||
null, e.getPlatform(), e.getRelease(), e.getEnvironment(), null, null, e.getCreatedAt()
|
||||
e.getId(), null, e.getEventId(), e.getAppKey(), e.getUserId(), e.getSessionId(),
|
||||
null, null, null, parseJsonField(e.getDevice()),
|
||||
e.getPlatform(), e.getRelease(), e.getEnvironment(),
|
||||
e.getSdkName(), e.getSdkVersion(), e.getCreatedAt()
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户