From 841ce021656c79004757227bcae818557baa1d8f Mon Sep 17 00:00:00 2001 From: Raymond Tukpe Date: Tue, 7 Nov 2023 16:30:11 +0100 Subject: [PATCH] fix: set event id when creating an event from the dashboard (#1836) --- services/create_event.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/create_event.go b/services/create_event.go index 4dbe6e03f2..d1f2065694 100644 --- a/services/create_event.go +++ b/services/create_event.go @@ -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" ) @@ -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,