Skip to content

Commit

Permalink
fix(analytics): fix first_attempt filter value parsing for Payments (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tsdk02 authored Nov 29, 2024
1 parent 60bc7d8 commit abcaa53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/analytics/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,8 @@ impl<T: AnalyticsDataSource> ToSql<T> for common_utils::id_type::CustomerId {

impl<T: AnalyticsDataSource> ToSql<T> for bool {
fn to_sql(&self, _table_engine: &TableEngine) -> error_stack::Result<String, ParsingError> {
Ok(self.to_string().to_owned())
let flag = *self;
Ok(i8::from(flag).to_string())
}
}

Expand Down

0 comments on commit abcaa53

Please sign in to comment.