From 6ee0317186da7ce93c8651739774596f0c480d4f Mon Sep 17 00:00:00 2001 From: Rogier Reerink Date: Sun, 11 Oct 2026 09:04:25 +0200 Subject: [PATCH] Already protected by auth/existence check. --- server/src/routes/errors.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server/src/routes/errors.rs b/server/src/routes/errors.rs index 72d8346..d6f7a9e 100644 --- a/server/src/routes/errors.rs +++ b/server/src/routes/errors.rs @@ -112,12 +112,6 @@ impl ClientError for RepositoryError { StatusCode::UNPROCESSABLE_ENTITY, "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) => ( StatusCode::CONFLICT, "Still referenced by one or more recurring transactions".into(),