Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Bugfix/change intraday data gathering to operate synchronously (#2705)

Thomas Kaul1d796a959738
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2aa09c05ab..a865536aa7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Respected the `withExcludedAccounts` flag in the account balance time series
+### Fixed
+
+- Changed the mechanism of the `INTRADAY` data gathering to operate synchronously avoiding database deadlocks
+
## 2.27.1 - 2023-11-28
### Changed
diff --git a/apps/api/src/services/data-provider/data-provider.service.ts b/apps/api/src/services/data-provider/data-provider.service.ts
index ef5143475f..cd5874ca71 100644
--- a/apps/api/src/services/data-provider/data-provider.service.ts
+++ b/apps/api/src/services/data-provider/data-provider.service.ts
@@ -346,7 +346,7 @@ export class DataProviderService {
);
try {
- this.marketDataService.updateMany({
+ await this.marketDataService.updateMany({
data: Object.keys(response)
.filter((symbol) => {
return (