Merge pull request #3703 from betagouv/frederic/fix_migration_updated_at
[#2180] Fix updated_at for migration PJ champs
This commit is contained in:
commit
bd265c6f32
1 changed files with 2 additions and 2 deletions
|
@ -37,12 +37,12 @@ class PieceJustificativeToChampPieceJointeMigrationService
|
|||
pj = dossier.retrieve_last_piece_justificative_by_type(type_pj_id)
|
||||
|
||||
if pj.present?
|
||||
convert_pj_to_champ!(pj, champ)
|
||||
|
||||
champ.update(
|
||||
updated_at: pj.updated_at,
|
||||
created_at: pj.created_at
|
||||
)
|
||||
|
||||
convert_pj_to_champ!(pj, champ)
|
||||
else
|
||||
champ.update(
|
||||
updated_at: dossier.updated_at,
|
||||
|
|
Loading…
Reference in a new issue