fix: add docs to CSV date column name

This commit is contained in:
Matthieu Bessat 2024-03-06 11:28:24 +01:00
parent 99800b8814
commit 7739242136

View file

@ -4,7 +4,7 @@ use crate::{
};
use anyhow::Result;
use crate::utils::{parse_datetime_american, normalize_str, parse_normalize_phone};
use crate::utils::{normalize_str, parse_datetime_american, parse_normalize_phone};
use crate::sync_paheko::{GeneralizedAnswer, sync_paheko};
use email_address::EmailAddress;
use chrono::prelude::Datelike;
@ -42,7 +42,7 @@ pub async fn sync_csv(
// raw row record directly from CSV
#[derive(Debug, serde::Deserialize)]
struct AnswerRecord {
#[serde(rename = "Date")]
#[serde(rename = "Date (MM/JJ/AAAA)")]
date: String,
#[serde(rename = "Email acheteur")]
email: String,