Skip to content

Commit

Permalink
EPMRPP-87223 || Fix duplicated logs
Browse files Browse the repository at this point in the history
  • Loading branch information
APiankouski committed Oct 23, 2023
1 parent ef9d00b commit 1742765
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,14 +296,16 @@ private void createItemLog(SaveLogRQ request, TestItem item, BinaryDataMetaInfo
Launch effectiveLaunch = testItemService.getEffectiveLaunch(item);
logService.saveLogMessageToElasticSearch(log, effectiveLaunch.getId());

saveAttachment(request.getFile().getName(), metaInfo,
log.getId(),
projectId,
effectiveLaunch.getId(),
item.getItemId(),
effectiveLaunch.getUuid(),
log.getUuid()
);
if (Objects.nonNull(request.getFile())) {
saveAttachment(request.getFile().getName(), metaInfo,
log.getId(),
projectId,
effectiveLaunch.getId(),
item.getItemId(),
effectiveLaunch.getUuid(),
log.getUuid()
);
}
}

private void createLaunchLog(SaveLogRQ request, Launch launch, BinaryDataMetaInfo metaInfo,
Expand Down

0 comments on commit 1742765

Please sign in to comment.