From 3ab34fd341984f1c5edce1449d16cd92d186ee29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20M=C3=A9rigot?= Date: Fri, 29 Nov 2024 11:57:57 +0100 Subject: [PATCH] fix: import --- .../services/apdf/providers/StorageRepositoryProvider.ts | 2 +- api/src/pdc/services/cee/actions/RegisterCeeAction.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/src/pdc/services/apdf/providers/StorageRepositoryProvider.ts b/api/src/pdc/services/apdf/providers/StorageRepositoryProvider.ts index 5d6da5b31..4ac7e2a53 100644 --- a/api/src/pdc/services/apdf/providers/StorageRepositoryProvider.ts +++ b/api/src/pdc/services/apdf/providers/StorageRepositoryProvider.ts @@ -8,7 +8,7 @@ import { S3ObjectList, S3StorageProvider, } from "@/pdc/providers/storage/index.ts"; -import { EnrichedApdfType } from "../contracts/list.contract.ts"; +import { EnrichedApdfType } from "../actions/ListAction.ts"; import { SerializedPolicyInterface, StorageRepositoryProviderInterfaceResolver, diff --git a/api/src/pdc/services/cee/actions/RegisterCeeAction.ts b/api/src/pdc/services/cee/actions/RegisterCeeAction.ts index 07b132c24..daa8d31bd 100644 --- a/api/src/pdc/services/cee/actions/RegisterCeeAction.ts +++ b/api/src/pdc/services/cee/actions/RegisterCeeAction.ts @@ -122,7 +122,7 @@ export class RegisterCeeAction extends AbstractAction { ); const application_timestamp = getDateOrFail( params.application_timestamp, - `data/application_timestamp not valid`, + "data/application_timestamp not valid", ); isBeforeOrFail(application_timestamp, 0); isBeforeOrFail(carpoolData.datetime, this.timeConstraint.short); @@ -184,11 +184,11 @@ export class RegisterCeeAction extends AbstractAction { ): Promise { const datetime = getDateOrFail( params.datetime, - `data/datetime ${timestampSchema.errorMessage}`, + "data/datetime not valid", ); const application_timestamp = getDateOrFail( params.application_timestamp, - `data/application_timestamp not valid`, + "data/application_timestamp not valid", ); isBeforeOrFail(application_timestamp, 0); isBeforeOrFail(datetime, this.timeConstraint.long);