Skip to content

Commit

Permalink
fix: fixed wrong source name showing in event log
Browse files Browse the repository at this point in the history
  • Loading branch information
subomi committed Oct 26, 2023
1 parent 899f542 commit 7df5a17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/pkg/pubsub/source_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ func (s *SourceLoader) handler(ctx context.Context, source *datastore.Source, ms
ce := task.CreateEvent{
Params: task.CreateEventTaskParams{
UID: ulid.Make().String(),
SourceID: source.UID,
ProjectID: source.ProjectID,
EndpointID: ev.EndpointID,
EventType: ev.EventType,
Expand Down
4 changes: 3 additions & 1 deletion worker/task/process_event_creation.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import (
"encoding/json"
"errors"
"fmt"
"time"

"github.com/frain-dev/convoy/pkg/msgpack"
"github.com/frain-dev/convoy/util"
"time"

"github.com/frain-dev/convoy"
"github.com/frain-dev/convoy/datastore"
Expand Down Expand Up @@ -411,6 +412,7 @@ func buildEvent(ctx context.Context, eventRepo datastore.EventRepository, endpoi
CreatedAt: time.Now(),
UpdatedAt: time.Now(),
Endpoints: endpointIDs,
SourceID: eventParams.SourceID,
ProjectID: project.UID,
}

Expand Down

0 comments on commit 7df5a17

Please sign in to comment.