From 57d1a8fec5efee652d036ddf93cd9105d9872b61 Mon Sep 17 00:00:00 2001 From: Tejas Badadare Date: Thu, 7 Aug 2025 11:59:24 -0700 Subject: [PATCH] fix(fortuna): callback_failed check against int --- Cargo.lock | 2 +- apps/fortuna/Cargo.toml | 2 +- apps/fortuna/src/history.rs | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7119acc019..48ed36f567 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3071,7 +3071,7 @@ dependencies = [ [[package]] name = "fortuna" -version = "9.1.0" +version = "9.1.1" dependencies = [ "anyhow", "axum 0.6.20", diff --git a/apps/fortuna/Cargo.toml b/apps/fortuna/Cargo.toml index c90d26376a..fc88390072 100644 --- a/apps/fortuna/Cargo.toml +++ b/apps/fortuna/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fortuna" -version = "9.1.0" +version = "9.1.1" edition = "2021" [lib] diff --git a/apps/fortuna/src/history.rs b/apps/fortuna/src/history.rs index 85c36bc97b..3d205a6eef 100644 --- a/apps/fortuna/src/history.rs +++ b/apps/fortuna/src/history.rs @@ -538,9 +538,9 @@ impl<'a> RequestQueryBuilder<'a> { sql.push_str(&format!(" AND state = ${param_count}")); if *state == StateTag::Completed { - sql.push_str(" AND NOT callback_failed"); + sql.push_str(" AND callback_failed = 0"); } else if *state == StateTag::CallbackErrored { - sql.push_str(" AND callback_failed"); + sql.push_str(" AND callback_failed = 1"); } } @@ -627,9 +627,9 @@ impl<'a> RequestQueryBuilder<'a> { sql.push_str(&format!(" AND state = ${param_count}")); if *state == StateTag::Completed { - sql.push_str(" AND NOT callback_failed"); + sql.push_str(" AND callback_failed = 0"); } else if *state == StateTag::CallbackErrored { - sql.push_str(" AND callback_failed"); + sql.push_str(" AND callback_failed = 1"); } }