Moved some errors around.

This commit is contained in:
2026-10-12 17:18:32 +02:00
parent a290610216
commit 05492123d7
5 changed files with 27 additions and 27 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ async fn upsert_account_member(
let member = member.into_domain(member_id, account_id)?;
let user = repository::users::get_by_id(&pool, member.user_id)
.await?
.ok_or(AppError::UserIdNotFound)?;
.ok_or(AppError::UserNotFound)?;
let upserted = repository::account_members::upsert(&pool, user_id, member)
.await?
.ok_or(AppError::NotFound)?;