We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 562938c + b4a68c6 commit 2be0bd4Copy full SHA for 2be0bd4
client/events/EventBuilder.go
@@ -82,7 +82,7 @@ func (impl *EventSimpleFactoryImpl) Build(eventType util.EventType, sourceId *in
82
event.PipelineId = *sourceId
83
}
84
event.AppId = appId
85
- if envId != nil {
+ if envId != nil && *envId > 0 {
86
env, err := impl.envRepository.FindById(*envId)
87
if err != nil {
88
impl.logger.Errorw("error in getting env", "envId", *envId, "err", err)
0 commit comments