Browse Source
Merge branch 'main' into feature/improve-preselected-currency-in-create-or-update-activity-dialog
pull/2349/head
Thomas Kaul
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
9 deletions
-
CHANGELOG.md
-
apps/api/src/services/data-gathering/data-gathering.processor.ts
|
|
@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
- Improved the preselected currency based on the account's currency in the create or edit activity dialog |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
- Fixed a memory leak related to the server's timezone (behind UTC) in the data gathering |
|
|
|
|
|
|
|
## 2.3.0 - 2023-09-17 |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
@ -13,6 +13,7 @@ import { Injectable, Logger } from '@nestjs/common'; |
|
|
|
import { Prisma } from '@prisma/client'; |
|
|
|
import { Job } from 'bull'; |
|
|
|
import { |
|
|
|
addDays, |
|
|
|
format, |
|
|
|
getDate, |
|
|
|
getMonth, |
|
|
@ -101,15 +102,7 @@ export class DataGatheringProcessor { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
// Count month one up for iteration
|
|
|
|
currentDate = new Date( |
|
|
|
Date.UTC( |
|
|
|
getYear(currentDate), |
|
|
|
getMonth(currentDate), |
|
|
|
getDate(currentDate) + 1, |
|
|
|
0 |
|
|
|
) |
|
|
|
); |
|
|
|
currentDate = addDays(currentDate, 1); |
|
|
|
} |
|
|
|
|
|
|
|
await this.marketDataService.updateMany({ data }); |
|
|
|