diff --git a/CHANGELOG.md b/CHANGELOG.md index b59cb9207..d8aea0f7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased -- Refactor Activities interface to ActivitiesResponse interface +- Refactor Activities interface to ActivitiesResponse interface. ### Changed diff --git a/apps/client/src/app/services/import-activities.service.ts b/apps/client/src/app/services/import-activities.service.ts index 3523dfeda..bccda34c1 100644 --- a/apps/client/src/app/services/import-activities.service.ts +++ b/apps/client/src/app/services/import-activities.service.ts @@ -193,7 +193,7 @@ export class ImportActivitiesService { type, unitPrice, updateAccountBalance - }: Activity): CreateOrderDto { + }: ActivityResponse): CreateOrderDto { return { accountId, comment, @@ -453,7 +453,7 @@ export class ImportActivitiesService { }, aIsDryRun = false ) { - return this.http.post<{ activities: Activity[] }>( + return this.http.post<{ activities: ActivityResponse[] }>( `/api/v1/import?dryRun=${aIsDryRun}`, aImportData );