Исправил баг обновления пайплайнов

This commit is contained in:
Struchkov Mark 2022-12-20 19:24:28 +03:00
parent dbc795a0f1
commit 96df62e30f
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6

View File

@ -82,7 +82,7 @@ public class PipelineServiceImpl implements PipelineService {
final Pipeline oldPipeline = repository.findById(pipeline.getId()) final Pipeline oldPipeline = repository.findById(pipeline.getId())
.orElseThrow(notFoundException("Pipeline не найден")); .orElseThrow(notFoundException("Pipeline не найден"));
pipeline.setProjectId(pipeline.getProjectId()); pipeline.setProjectId(oldPipeline.getProjectId());
if (!oldPipeline.getUpdated().equals(pipeline.getUpdated())) { if (!oldPipeline.getUpdated().equals(pipeline.getUpdated())) {
notifyNewPipeline(pipeline, oldPipeline.getStatus().name()); notifyNewPipeline(pipeline, oldPipeline.getStatus().name());