fix: typo
This commit is contained in:
parent
5dfb926dc8
commit
586e393269
|
@ -21,7 +21,7 @@ pub enum InUIError {
|
|||
impl From<ProcessAuthorizationServiceError> for InUIError {
|
||||
fn from(v: ProcessAuthorizationServiceError) -> Self {
|
||||
match v {
|
||||
ProcessAuthorizationServiceError::InteralError => Self::InternalServerError,
|
||||
ProcessAuthorizationServiceError::InternalError => Self::InternalServerError,
|
||||
ProcessAuthorizationServiceError::BadRequest => Self::BadRequest,
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ impl From<ProcessAuthorizationServiceError> for InUIError {
|
|||
impl From<RequestAuthorizationServiceError> for InUIError {
|
||||
fn from(v: RequestAuthorizationServiceError) -> Self {
|
||||
match v {
|
||||
RequestAuthorizationServiceError::InteralError => Self::InternalServerError,
|
||||
RequestAuthorizationServiceError::InternalError => Self::InternalServerError,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,5 +5,6 @@ pub type OutForgePortResult<V> = Result<V, OutForgePortError>;
|
|||
|
||||
#[derive(Debug, Display, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
|
||||
pub enum OutForgePortError {
|
||||
InteralError,
|
||||
InternalError,
|
||||
OAuthAccessTokenExpired,
|
||||
}
|
||||
|
|
|
@ -8,18 +8,18 @@ pub type ProcessAuthorizationServiceResult<V> = Result<V, ProcessAuthorizationSe
|
|||
|
||||
#[derive(Debug, Display, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
|
||||
pub enum ProcessAuthorizationServiceError {
|
||||
InteralError,
|
||||
InternalError,
|
||||
BadRequest,
|
||||
}
|
||||
|
||||
impl From<OutDBPortError> for ProcessAuthorizationServiceError {
|
||||
fn from(v: OutDBPortError) -> Self {
|
||||
match v {
|
||||
OutDBPortError::DuplicateState => Self::InteralError, // only happens when there's a
|
||||
OutDBPortError::DuplicateState => Self::InternalError, // only happens when there's a
|
||||
// bug in code
|
||||
OutDBPortError::InternalError => Self::InteralError,
|
||||
OutDBPortError::DuplicateAccessToken => Self::InteralError, // only happens when bug in
|
||||
// code
|
||||
OutDBPortError::InternalError => Self::InternalError,
|
||||
OutDBPortError::DuplicateAccessToken => Self::InternalError, // only happens when bug in
|
||||
// code
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,8 @@ impl From<OutDBPortError> for ProcessAuthorizationServiceError {
|
|||
impl From<OutForgePortError> for ProcessAuthorizationServiceError {
|
||||
fn from(v: OutForgePortError) -> Self {
|
||||
match v {
|
||||
OutForgePortError::InteralError => Self::InteralError,
|
||||
OutForgePortError::InternalError => Self::InternalError,
|
||||
OutForgePortError::OAuthAccessTokenExpired => unimplemented!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ impl ProcessAuthorizationResponseUseCase for ProcessAuthorizationResponseService
|
|||
if u.host() != self.process_authorization_response_redirect_uri.host()
|
||||
&& u.path() != self.process_authorization_response_redirect_uri.path()
|
||||
{
|
||||
return Err(ProcessAuthorizationServiceError::InteralError);
|
||||
return Err(ProcessAuthorizationServiceError::InternalError);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -8,17 +8,17 @@ pub type RequestAuthorizationServiceResult<V> = Result<V, RequestAuthorizationSe
|
|||
|
||||
#[derive(Debug, Display, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
|
||||
pub enum RequestAuthorizationServiceError {
|
||||
InteralError,
|
||||
InternalError,
|
||||
}
|
||||
|
||||
impl From<OutDBPortError> for RequestAuthorizationServiceError {
|
||||
fn from(v: OutDBPortError) -> Self {
|
||||
match v {
|
||||
OutDBPortError::DuplicateState => Self::InteralError, // only happens when there's a
|
||||
OutDBPortError::DuplicateState => Self::InternalError, // only happens when there's a
|
||||
// bug in code
|
||||
OutDBPortError::InternalError => Self::InteralError,
|
||||
OutDBPortError::DuplicateAccessToken => Self::InteralError, // only happens when bug in
|
||||
// code
|
||||
OutDBPortError::InternalError => Self::InternalError,
|
||||
OutDBPortError::DuplicateAccessToken => Self::InternalError, // only happens when bug in
|
||||
// code
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,8 @@ impl From<OutDBPortError> for RequestAuthorizationServiceError {
|
|||
impl From<OutForgePortError> for RequestAuthorizationServiceError {
|
||||
fn from(v: OutForgePortError) -> Self {
|
||||
match v {
|
||||
OutForgePortError::InteralError => Self::InteralError,
|
||||
OutForgePortError::InternalError => Self::InternalError,
|
||||
OutForgePortError::OAuthAccessTokenExpired => unimplemented!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue