Skip to content
Snippets Groups Projects
Commit 1e0b7f1b authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

Merge branch '471-profile-migration-apartment' into 'dev'

fix(profile): add migration to fix typo

See merge request !872
parents 9b8a51e4 577de97a
Branches
Tags
2 merge requests!8742.3.1,!872fix(profile): add migration to fix typo
......@@ -984,7 +984,7 @@
"title": "Logement",
"question": "De quel type de logement disposez-vous\u00a0?",
"individual_house": "Maison individuelle",
"appartment": "Appartement"
"apartment": "Appartement"
},
"construction_year": {
"title": "Construction",
......
......@@ -565,7 +565,22 @@ export const migrations: Migration[] = [
if (doc.partnersIssueDate) {
delete doc.partnersIssueDate
}
// TODO remove this ?
return doc
})
},
},
{
baseSchemaVersion: 22,
targetSchemaVersion: 23,
appVersion: '2.3.0',
description: 'Fix apartment typo',
releaseNotes: null,
docTypes: PROFILETYPE_DOCTYPE,
run: async (_client: Client, docs: any[]) => {
return docs.map(doc => {
if (doc.housingType === 'appartment') {
doc.housingType = 'apartment'
}
return doc
})
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment