Skip to content

Commit 79a0e76

Browse files
committed
fix: include is_title_fetched on insert
1 parent e6b1fb3 commit 79a0e76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ApplicationData/Services/LinkProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ SELECT 1 FROM links
167167
await using var tx = await connection.CreateTransaction(IsolationLevel.Serializable, CancellationToken.None);
168168

169169
await tx.Execute("""
170-
INSERT INTO reddit_posts (reddit_post_id, post_title)
171-
VALUES (@redditPostId, @postTitle)
170+
INSERT INTO reddit_posts (reddit_post_id, post_title, is_title_fetched)
171+
VALUES (@redditPostId, @postTitle, 1)
172172
ON CONFLICT DO NOTHING
173173
""", new { redditPostId = link.RedditPostId, postTitle = link.RedditPostTitle });
174174

0 commit comments

Comments
 (0)