Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions backend/server/services/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ func getProjectName(pipeline *models.Pipeline) (string, errors.Error) {
return "", errors.Default.New("pipeline is nil")
}
blueprintId := pipeline.BlueprintId
if blueprintId == 0 {
return "", nil
}
dbBlueprint := &models.Blueprint{}
err := db.First(dbBlueprint, dal.Where("id = ?", blueprintId))
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion backend/server/services/pipeline_notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
)

type PipelineNotificationParam struct {
ProjectName string
ProjectName string // can be an empty string, if pipeline is created and triggered by API
PipelineID uint64
CreatedAt time.Time
UpdatedAt time.Time
Expand Down
Loading