diff --git a/src/identity/application/services/errors.rs b/src/identity/application/services/errors.rs index 2730859..253a70b 100644 --- a/src/identity/application/services/errors.rs +++ b/src/identity/application/services/errors.rs @@ -29,6 +29,9 @@ pub enum IdentityError { EmployeeNotFound, InviteNotFound, StoreNotFound, + DuplicateStoreName, + StoreIDNotFound, + DuplicateStoreID, } pub type IdentityCommandResult = Result; @@ -74,6 +77,9 @@ impl From for IdentityError { OutDBPortError::PhoneNumberNotFound => Self::PhoneNumberNotFound, OutDBPortError::EmpLoginOTPNotFound => Self::LoginOTPNotFound, OutDBPortError::EmpVerificationOTPNotFound => Self::VerificationOTPNotFound, + OutDBPortError::DuplicateStoreName => Self::DuplicateStoreName, + OutDBPortError::DuplicateStoreID => Self::DuplicateStoreID, + OutDBPortError::StoreIDNotFound => Self::StoreIDNotFound, } } }