feat(analytics): add first_attempt as a filter for PaymentFilters (#6604)

This commit is contained in:
Sandeep Kumar
2024-11-24 18:32:46 +05:30
committed by GitHub
parent 8d0639ea6f
commit 9460041b2a
5 changed files with 19 additions and 0 deletions

View File

@ -457,6 +457,12 @@ 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())
}
}
/// Implement `ToSql` on arrays of types that impl `ToString`.
macro_rules! impl_to_sql_for_to_string {
($($type:ty),+) => {