From 3f6d45f90053036e46fdc567c6116ff41ec35f32 Mon Sep 17 00:00:00 2001 From: David Janowski Date: Mon, 26 Aug 2024 10:57:05 +0200 Subject: [PATCH] fix: Make CreatedAt field a pointer in Message struct --- pkg/plug/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/plug/server.go b/pkg/plug/server.go index 9efb16d..5b4f379 100644 --- a/pkg/plug/server.go +++ b/pkg/plug/server.go @@ -17,7 +17,7 @@ import ( type Message struct { Title string Body string - CreatedAt timestamppb.Timestamp + CreatedAt *timestamppb.Timestamp } type TaskExecution func(ctx context.Context, userSource models.UserSource, deepScrape bool, apiKey string, cancelFunction func()) error