Skip to content

Commit

Permalink
fix(dashboard): dates 'À faire le' et 'Complétée le' dispo pour les c…
Browse files Browse the repository at this point in the history
…onsultations exportées en fichier excel
  • Loading branch information
Arnaud AMBROSELLI committed Nov 28, 2023
1 parent 529ad1b commit 3014293
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ export default function ExportFormattedData({ personCreated, personUpdated, acti
else fields[field.label || field.name] = consultation[field.name];
return fields;
}, {}),
'Complétée le': consultation.completedAt ? dayjsInstance(consultation.completedAt).format('YYYY-MM-DD HH:mm') : '',
'À faire le': consultation.dueAt ? dayjsInstance(consultation.dueAt).format(consultation.withTime ? 'YYYY-MM-DD HH:mm' : 'YYYY-MM-DD') : '',
'Créée par': loadedUsers.find((u) => u._id === consultation.user)?.name,
'Créée le': dayjsInstance(consultation.createdAt).format('YYYY-MM-DD HH:mm'),
'Mise à jour le': dayjsInstance(consultation.updatedAt).format('YYYY-MM-DD HH:mm'),
Expand Down

0 comments on commit 3014293

Please sign in to comment.