refactor(enums): move enums from storage_models and api_models crates to common_enums crate (#1265)

This commit is contained in:
Amisha Prabhat
2023-07-13 17:42:14 +05:30
committed by GitHub
parent b8393d4b50
commit c0e1d4d3b0
40 changed files with 991 additions and 1852 deletions

View File

@ -17,7 +17,7 @@ use crate::{
mandates::{self, MandateResponseExt},
},
domain, storage,
transformers::{ForeignInto, ForeignTryFrom},
transformers::ForeignTryFrom,
},
utils::OptionExt,
};
@ -58,7 +58,7 @@ pub async fn revoke_mandate(
Ok(services::ApplicationResponse::Json(
mandates::MandateRevokedResponse {
mandate_id: mandate.mandate_id,
status: mandate.mandate_status.foreign_into(),
status: mandate.mandate_status,
},
))
}