fix: Make CreatedAt field a pointer in Message struct

This commit is contained in:
David Janowski 2024-08-26 10:57:05 +02:00
parent 750c30a674
commit 3f6d45f900

View File

@ -17,7 +17,7 @@ import (
type Message struct { type Message struct {
Title string Title string
Body 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 type TaskExecution func(ctx context.Context, userSource models.UserSource, deepScrape bool, apiKey string, cancelFunction func()) error