Browse Source

2nd_try

pull/5825/head
Raj Gupta 2 months 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 ## Unreleased
- Refactor Activities interface to ActivitiesResponse interface - Refactor Activities interface to ActivitiesResponse interface.
### Changed ### Changed

4
apps/client/src/app/services/import-activities.service.ts

@ -193,7 +193,7 @@ export class ImportActivitiesService {
type, type,
unitPrice, unitPrice,
updateAccountBalance updateAccountBalance
}: Activity): CreateOrderDto { }: ActivityResponse): CreateOrderDto {
return { return {
accountId, accountId,
comment, comment,
@ -453,7 +453,7 @@ export class ImportActivitiesService {
}, },
aIsDryRun = false aIsDryRun = false
) { ) {
return this.http.post<{ activities: Activity[] }>( return this.http.post<{ activities: ActivityResponse[] }>(
`/api/v1/import?dryRun=${aIsDryRun}`, `/api/v1/import?dryRun=${aIsDryRun}`,
aImportData aImportData
); );

Loading…
Cancel
Save