Already protected by auth/existence check.
This commit is contained in:
@@ -112,12 +112,6 @@ impl ClientError for RepositoryError {
|
|||||||
StatusCode::UNPROCESSABLE_ENTITY,
|
StatusCode::UNPROCESSABLE_ENTITY,
|
||||||
"Account cannot be found".into(),
|
"Account cannot be found".into(),
|
||||||
),
|
),
|
||||||
(Kind::Missing, Relation::User) => {
|
|
||||||
(StatusCode::NOT_FOUND, "User cannot be found".into())
|
|
||||||
}
|
|
||||||
(Kind::Missing, Relation::UserApp) => {
|
|
||||||
(StatusCode::NOT_FOUND, "User app cannot be found".into())
|
|
||||||
}
|
|
||||||
(Kind::StillReferenced, Relation::RecurringTransaction) => (
|
(Kind::StillReferenced, Relation::RecurringTransaction) => (
|
||||||
StatusCode::CONFLICT,
|
StatusCode::CONFLICT,
|
||||||
"Still referenced by one or more recurring transactions".into(),
|
"Still referenced by one or more recurring transactions".into(),
|
||||||
|
|||||||
Reference in New Issue
Block a user