Skip to content

Commit 562d0a8

Browse files
fix(fortuna): callback_failed check against int (#2936)
1 parent 7896c72 commit 562d0a8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/fortuna/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fortuna"
3-
version = "9.1.0"
3+
version = "9.1.1"
44
edition = "2021"
55

66
[lib]

apps/fortuna/src/history.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,9 +538,9 @@ impl<'a> RequestQueryBuilder<'a> {
538538
sql.push_str(&format!(" AND state = ${param_count}"));
539539

540540
if *state == StateTag::Completed {
541-
sql.push_str(" AND NOT callback_failed");
541+
sql.push_str(" AND callback_failed = 0");
542542
} else if *state == StateTag::CallbackErrored {
543-
sql.push_str(" AND callback_failed");
543+
sql.push_str(" AND callback_failed = 1");
544544
}
545545
}
546546

@@ -627,9 +627,9 @@ impl<'a> RequestQueryBuilder<'a> {
627627
sql.push_str(&format!(" AND state = ${param_count}"));
628628

629629
if *state == StateTag::Completed {
630-
sql.push_str(" AND NOT callback_failed");
630+
sql.push_str(" AND callback_failed = 0");
631631
} else if *state == StateTag::CallbackErrored {
632-
sql.push_str(" AND callback_failed");
632+
sql.push_str(" AND callback_failed = 1");
633633
}
634634
}
635635

0 commit comments

Comments
 (0)