From 21558062c6595af160169fc9983cc46203e16baf Mon Sep 17 00:00:00 2001 From: Bertrand Bougon Date: Thu, 26 Dec 2024 17:29:03 +0100 Subject: [PATCH] =?UTF-8?q?[CORRECTION]=20Corrige=20l=E2=80=99affichage=20?= =?UTF-8?q?de=20la=20date=20'Compte=20cr=C3=A9=C3=A9=20le'=20sur=20la=20pa?= =?UTF-8?q?ge=20de=20profil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entrepots/postgres/EntrepotProfilAidantPostgres.ts | 2 +- .../test/constructeurs/constructeursAidantUtilisateur.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mon-aide-cyber-api/src/infrastructure/entrepots/postgres/EntrepotProfilAidantPostgres.ts b/mon-aide-cyber-api/src/infrastructure/entrepots/postgres/EntrepotProfilAidantPostgres.ts index 468bd8faf..460d253c6 100644 --- a/mon-aide-cyber-api/src/infrastructure/entrepots/postgres/EntrepotProfilAidantPostgres.ts +++ b/mon-aide-cyber-api/src/infrastructure/entrepots/postgres/EntrepotProfilAidantPostgres.ts @@ -54,7 +54,7 @@ export class EntrepotProfilAidantPostgres implements EntrepotProfilAidant { lis(identifiant: string): Promise { return this.knex .raw( - `SELECT u.id as id, json_build_object('dateSignatureCGU', u.donnees -> 'dateSignatureCGU', 'email', a.donnees ->> 'email', 'nomPrenom', a.donnees ->> 'nomPrenom', 'preferences', a.donnees -> 'preferences', 'consentementAnnuaire', a.donnees -> 'consentementAnnuaire') as donnees + `SELECT u.id as id, json_build_object('dateSignatureCGU', a.donnees -> 'dateSignatureCGU', 'email', a.donnees ->> 'email', 'nomPrenom', a.donnees ->> 'nomPrenom', 'preferences', a.donnees -> 'preferences', 'consentementAnnuaire', a.donnees -> 'consentementAnnuaire') as donnees FROM utilisateurs u, utilisateurs_mac a WHERE u.id = a.id AND u.id = ?;`, [identifiant] diff --git a/mon-aide-cyber-api/test/constructeurs/constructeursAidantUtilisateur.ts b/mon-aide-cyber-api/test/constructeurs/constructeursAidantUtilisateur.ts index d68b07471..206e0a60e 100644 --- a/mon-aide-cyber-api/test/constructeurs/constructeursAidantUtilisateur.ts +++ b/mon-aide-cyber-api/test/constructeurs/constructeursAidantUtilisateur.ts @@ -71,7 +71,7 @@ class ConstructeurAidant implements Constructeur { private typesEntites: TypesEntites = []; private consentementAnnuaire = false; private siret: string | undefined = undefined; - private dateSignatureCGU: Date | undefined = fakerFR.date.anytime(); + private dateSignatureCGU: Date | undefined = FournisseurHorloge.maintenant(); avecUnNomPrenom(nomPrenom: string): ConstructeurAidant { this.nomPrenom = nomPrenom;