fmt
Some checks failed
CI / Check / Test (push) Has been cancelled

This commit is contained in:
2026-07-10 05:45:44 +02:00
parent c224cc6bd2
commit 0eb56c2be6
53 changed files with 391 additions and 203 deletions

View File

@@ -7,8 +7,8 @@ use domain::{
};
use sqlx::PgPool;
use adapter_common::format_year_month;
use crate::models::{DirectorCountRow, MonthlyRatingRow, UserTotalsRow};
use adapter_common::format_year_month;
pub struct PostgresStatsRepository {
pool: PgPool,
@@ -19,7 +19,6 @@ impl PostgresStatsRepository {
Self { pool }
}
async fn fetch_user_totals(&self, user_id: &str) -> Result<UserTotalsRow, DomainError> {
sqlx::query_as::<_, UserTotalsRow>(
r#"SELECT COUNT(DISTINCT movie_id) AS total,