diff --git a/bot-core/src/main/java/dev/struchkov/bot/gitlab/core/service/impl/PipelineServiceImpl.java b/bot-core/src/main/java/dev/struchkov/bot/gitlab/core/service/impl/PipelineServiceImpl.java index e154d90..11015a4 100644 --- a/bot-core/src/main/java/dev/struchkov/bot/gitlab/core/service/impl/PipelineServiceImpl.java +++ b/bot-core/src/main/java/dev/struchkov/bot/gitlab/core/service/impl/PipelineServiceImpl.java @@ -82,7 +82,7 @@ public class PipelineServiceImpl implements PipelineService { final Pipeline oldPipeline = repository.findById(pipeline.getId()) .orElseThrow(notFoundException("Pipeline не найден")); - pipeline.setProjectId(pipeline.getProjectId()); + pipeline.setProjectId(oldPipeline.getProjectId()); if (!oldPipeline.getUpdated().equals(pipeline.getUpdated())) { notifyNewPipeline(pipeline, oldPipeline.getStatus().name());