Skip to content

Commit 1c857de

Browse files
committed
fix: postgres build and CI workflow updates
1 parent 4d1f59e commit 1c857de

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/background.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,14 @@ pub fn spawn_discard_stats_task(
5858

5959
pub fn spawn_wal_checkpoint_task(pool: DbPool, cancel: CancellationToken) {
6060
tokio::spawn(async move {
61+
let _pool = pool;
6162
loop {
6263
tokio::select! {
6364
_ = cancel.cancelled() => return,
6465
_ = tokio::time::sleep(Duration::from_secs(60)) => {}
6566
}
6667
#[cfg(feature = "sqlite")]
67-
if let Err(e) = crate::db::sqlite_pragma(&pool, "PRAGMA wal_checkpoint(PASSIVE)").await
68+
if let Err(e) = crate::db::sqlite_pragma(&_pool, "PRAGMA wal_checkpoint(PASSIVE)").await
6869
{
6970
tracing::warn!("WAL checkpoint error: {e}");
7071
}

src/queries/integrations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub async fn get_integration(pool: &DbPool, id: i64) -> Result<Option<Integratio
4747
fn row_to_project_integration(row: &crate::db::DbRow) -> ProjectIntegration {
4848
ProjectIntegration {
4949
id: row.get(0),
50-
project_id: row.get(1),
50+
project_id: row.get::<i64, _>(1) as u64,
5151
integration_id: row.get(2),
5252
integration_name: row.get(3),
5353
integration_kind: row.get(4),

0 commit comments

Comments
 (0)