fix: Restricting operation on redacted customer (#289)

This commit is contained in:
Manoj Ghorela
2023-01-14 23:07:25 +05:30
committed by GitHub
parent 50f16d270a
commit 0a9e2f6930
4 changed files with 108 additions and 56 deletions

View File

@ -60,6 +60,8 @@ pub enum StorageError {
SerializationFailed,
#[error("MockDb error")]
MockDbError,
#[error("Customer with this id is Redacted")]
CustomerRedacted,
}
impl From<error_stack::Report<storage_errors::DatabaseError>> for StorageError {