fix: address code review issues in SQLite adapter

This commit is contained in:
2026-05-04 18:46:31 +02:00
parent f5fe8aeaff
commit e9b01eea2b
3 changed files with 7 additions and 17 deletions

View File

@@ -113,10 +113,7 @@ impl UserRepository for SqliteUserRepository {
)
.fetch_all(&self.pool)
.await
.map_err(|e| {
tracing::error!("Database error: {:?}", e);
DomainError::InfrastructureError("Database operation failed".into())
})?
.map_err(Self::map_err)?
.into_iter()
.map(UserSummaryRow::to_domain)
.collect()