mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
refactor(storage_models): changed CustomResult in storage_models to StorageResult (#158)
This commit is contained in:
@ -22,9 +22,7 @@ pub struct TypedSql {
|
||||
}
|
||||
|
||||
impl TypedSql {
|
||||
pub fn to_field_value_pairs(
|
||||
&self,
|
||||
) -> crate::CustomResult<Vec<(&str, String)>, errors::DatabaseError> {
|
||||
pub fn to_field_value_pairs(&self) -> crate::StorageResult<Vec<(&str, String)>> {
|
||||
Ok(vec![(
|
||||
"typed_sql",
|
||||
serde_json::to_string(self)
|
||||
|
||||
Reference in New Issue
Block a user