Skip to content

Commit

Permalink
Typo in target api "moncomptepro" (#1537)
Browse files Browse the repository at this point in the history
- quick fix to avoid frontend to broke if a "demandeur" has an enrollment for mon compte pro in his home page.
  • Loading branch information
Isalafont authored Oct 14, 2024
1 parent 9c1953f commit b0a5db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/models/enrollment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def migrated_target_apis
end
end

default_scope { where.not(target_api: ["mon_compte_pro"]) }
default_scope { where.not(target_api: ["moncomptepro"]) }

validate :update_validation
validate :submit_validation, on: :submit
Expand Down

0 comments on commit b0a5db2

Please sign in to comment.