Skip to content

Commit

Permalink
Don't update date, when updating posts
Browse files Browse the repository at this point in the history
work around for #427
  • Loading branch information
msasikanth committed Jun 29, 2024
1 parent f6c0325 commit f2ef0c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ upsert:
INSERT INTO post(id, sourceId, title, description, rawContent, imageUrl, date, link, commentsLink)
VALUES (:id, :sourceId, :title, :description, :rawContent, :imageUrl, :date, :link, :commnetsLink)
ON CONFLICT(id) DO
UPDATE SET title = excluded.title, description = excluded.description, rawContent = excluded.rawContent, imageUrl = excluded.imageUrl, date = excluded.date;
UPDATE SET title = excluded.title, description = excluded.description, rawContent = excluded.rawContent, imageUrl = excluded.imageUrl;

count:
SELECT COUNT(DISTINCT post.id) FROM post
Expand Down

0 comments on commit f2ef0c6

Please sign in to comment.