Skip to content

Commit e9b975c

Browse files
committed
fix: use issue id when linking comment to issue on creation
1 parent bb83210 commit e9b975c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

issue-bot/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ async fn handle_webhooks(
470470
Action::Created => {
471471
let issue_id = match sqlx::query!(
472472
"select id from issues where source_id = $1",
473-
comment.source_id
473+
comment.issue_id
474474
)
475475
.fetch_optional(&pool)
476476
.await

0 commit comments

Comments
 (0)