Skip to content

Commit

Permalink
fix: missing casts
Browse files Browse the repository at this point in the history
  • Loading branch information
Srynetix committed Jun 5, 2024
1 parent 6eeb3fa commit 9e9d8ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/prbot-database-pg/src/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ impl DbService for PostgresDb {
RETURNING pull_request.id;
"#,
)
.bind(id as i32)
.bind(id as i64)
.bind(owner)
.bind(name)
.bind(number as i32)
Expand Down
2 changes: 1 addition & 1 deletion crates/prbot-database-pg/src/row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl<'r> FromRow<'r, PgRow> for PullRequestRow {
number: row.try_get::<i32, _>("number")? as u64,
qa_status: *row.try_get::<QaStatusDecode, _>("qa_status")?,
needed_reviewers_count: row.try_get::<i32, _>("needed_reviewers_count")? as u64,
status_comment_id: row.try_get::<i32, _>("status_comment_id")? as u64,
status_comment_id: row.try_get::<i64, _>("status_comment_id")? as u64,
checks_enabled: row.try_get("checks_enabled")?,
automerge: row.try_get("automerge")?,
locked: row.try_get("locked")?,
Expand Down

0 comments on commit 9e9d8ec

Please sign in to comment.