Repo/db fn name refactor.

This commit is contained in:
2026-10-08 21:18:21 +02:00
parent 8726591528
commit c51e9425d6
18 changed files with 38 additions and 38 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ async fn get_account(
State(pool): State<PgPool>,
Path(id): Path<Uuid>,
) -> Result<Json<AccountResponse>, AppError> {
let account = repository::accounts::get(&pool, id)
let account = repository::accounts::get_by_id(&pool, id)
.await?
.ok_or(AppError::NotFound)?;
@@ -91,7 +91,7 @@ async fn delete_account(
Path(id): Path<Uuid>,
State(pool): State<PgPool>,
) -> Result<StatusCode, AppError> {
match repository::accounts::delete(&pool, id).await? {
match repository::accounts::delete_by_id(&pool, id).await? {
Delete::Deleted => Ok(StatusCode::NO_CONTENT),
Delete::NotFound => Err(AppError::NotFound),
}