fix(analytics): fix first_attempt filter value parsing for Payments (#6667)

This commit is contained in:
Sandeep Kumar
2024-11-29 15:16:16 +05:30
committed by GitHub
parent 60bc7d8977
commit abcaa539ec

View File

@ -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())
}
}