fix: 临时处理 asw 和 opensearch 组件角色对应关系

This commit is contained in:
shizhendong
2024-11-04 17:36:18 +08:00
parent 9ccd0ecc1f
commit bc26bcabd4

View File

@@ -416,11 +416,12 @@ public class GitServiceImpl implements IGitService {
files.add(
T.MapUtil.builder()
.put("path", path)
.put("addedLines", (addedLines == 0 ? 0 : ++addedLines))
.put("removedLines", (deletedLines == 0 ? 0 : ++deletedLines))
.put("addedLines", addedLines)
.put("removedLines", deletedLines)
.put("encoding", encoding)
.put("oldContent", oldContent)
.put("newContent", newContent)
.put("action", diff.getChangeType().name().toLowerCase())
.build()
);
}