summaryrefslogtreecommitdiff
path: root/services/worker/internal/writer/writer.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/worker/internal/writer/writer.go')
-rw-r--r--services/worker/internal/writer/writer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/worker/internal/writer/writer.go b/services/worker/internal/writer/writer.go
index 543b6e6..e5c7153 100644
--- a/services/worker/internal/writer/writer.go
+++ b/services/worker/internal/writer/writer.go
@@ -100,7 +100,7 @@ func (feedWriter *Writer) WriteEntries(writeContext context.Context, feedEntries
ELSE EXCLUDED.content_text
END,
image_url = EXCLUDED.image_url,
- published_at = EXCLUDED.published_at,
+ published_at = COALESCE(entries.published_at, EXCLUDED.published_at),
word_count = EXCLUDED.word_count,
enclosure_url = EXCLUDED.enclosure_url,
enclosure_type = EXCLUDED.enclosure_type,