Skip to content

Commit

Permalink
fix: set event id when creating an event from the dashboard (#1836)
Browse files Browse the repository at this point in the history
  • Loading branch information
jirevwe authored Nov 7, 2023
1 parent c375511 commit 841ce02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/create_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/frain-dev/convoy/queue"
"github.com/frain-dev/convoy/util"
"github.com/frain-dev/convoy/worker/task"
"github.com/oklog/ulid/v2"
"time"
)

Expand Down Expand Up @@ -73,6 +74,7 @@ func (c *CreateEventService) Run(ctx context.Context) (*datastore.Event, error)
}

newEvent := &newEvent{
UID: ulid.Make().String(),
Data: c.NewMessage.Data,
EventType: c.NewMessage.EventType,
EndpointID: c.NewMessage.EndpointID,
Expand Down

0 comments on commit 841ce02

Please sign in to comment.