Skip to content

Commit

Permalink
Sosynpl[premieroctet#157] fixed bug where mobility_city isn't sent
Browse files Browse the repository at this point in the history
  • Loading branch information
SeghirOumo committed Jul 30, 2024
1 parent 6d311ee commit 3c8d250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/web/server/plugins/sosynpl/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ CUSTOMERFREELANCEMODELS.forEach(model => {
})
declareVirtualField({model, field: 'customer_evaluations_count', instance:'Number'})
declareVirtualField({model, field: 'freelance_evaluations_count', instance:'Number'})
declareVirtualField({model, field: 'freelance_profile_completion', requires:[...FREELANCE_REQUIRED_ATTRIBUTES, ...SOFT_SKILLS_ATTR, ...FREELANCE_MANDATORY_ATTRIBUTES, 'freelance_missing_attributes'].join(','), instance: 'Number'})
declareVirtualField({model, field: 'freelance_profile_completion', requires:[...FREELANCE_REQUIRED_ATTRIBUTES, ...SOFT_SKILLS_ATTR, ...FREELANCE_MANDATORY_ATTRIBUTES, 'freelance_missing_attributes', 'mobility_city'].join(','), instance: 'Number'})
declareVirtualField({
model, field: 'freelance_missing_attributes', instance: 'Array', multiple: true, requires:[...FREELANCE_REQUIRED_ATTRIBUTES, ...SOFT_SKILLS_ATTR, ...FREELANCE_MANDATORY_ATTRIBUTES].join(','),
caster: {
Expand Down

0 comments on commit 3c8d250

Please sign in to comment.