Browse Source

2nd_try

pull/5825/head
Raj Gupta 1 week ago
parent
commit
724385ee2c
  1. 2
      CHANGELOG.md
  2. 4
      apps/client/src/app/services/import-activities.service.ts

2
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

4
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
);

Loading…
Cancel
Save