fix: remover referência a ErrCannotEditImported no Update

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
2026-05-27 16:42:44 -03:00
co-authored by Claude Sonnet 4.6
parent 88461a4aea
commit 50637bd590
+1 -1
View File
@@ -46,7 +46,7 @@ func (s *TransactionService) Update(ctx context.Context, t model.Transaction) (*
t.Description = strings.TrimSpace(t.Description) t.Description = strings.TrimSpace(t.Description)
out, err := s.repo.Update(ctx, t) out, err := s.repo.Update(ctx, t)
if errors.Is(err, repository.ErrNotFound) { if errors.Is(err, repository.ErrNotFound) {
return nil, ErrCannotEditImported return nil, errors.New("transaction not found")
} }
return out, err return out, err
} }