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

@@ -13,7 +13,10 @@ pub async fn execute(
) -> Result<GoalWithProgress, DomainError> {
let user_id = UserId::from_uuid(cmd.user_id);
let existing = deps.goal_query.find_by_user_and_year(&user_id, cmd.year).await?;
let existing = deps
.goal_query
.find_by_user_and_year(&user_id, cmd.year)
.await?;
if existing.is_some() {
return Err(DomainError::ValidationError(
"Goal already exists for this year".into(),