Perform last member removal check on the database.

This commit is contained in:
2026-10-12 18:05:10 +02:00
parent 6729dd060b
commit 2b37fd6ebc
11 changed files with 102 additions and 123 deletions
-16
View File
@@ -62,22 +62,6 @@ where
Ok(account)
}
pub async fn get_by_id_locking<'e, E>(
executor: E,
user_id: Uuid,
id: Uuid,
) -> Result<Option<Account>, RepositoryError>
where
E: sqlx::Executor<'e, Database = sqlx::Postgres>,
{
let account = db::get_by_id_locking(executor, user_id, id)
.await?
.map(decode)
.transpose()?;
Ok(account)
}
pub async fn get_by_ids<'e, E>(
executor: E,
user_id: Uuid,