Merge branch 'main' of github.com:ghostfolio/ghostfolio
Some checks failed
Extract locales / extract_locales (push) Failing after 11m54s

This commit is contained in:
sudacode 2025-02-03 12:00:07 -08:00
commit 8a986211b0
2 changed files with 11 additions and 3 deletions

View File

@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Improved the caching of the portfolio snapshot in the portfolio calculator by expiring cache entries when a user changes tags in the holding detail dialog
- Improved the language localization for German (`de`)
## 2.137.1 - 2025-02-01

View File

@ -63,14 +63,14 @@ export class OrderService {
}
});
return Promise.all(
await Promise.all(
orders.map(({ id }) =>
this.prismaService.order.update({
data: {
tags: {
// The set operation replaces all existing connections with the provided ones
set: tags.map(({ id }) => {
return { id };
set: tags.map((tag) => {
return { id: tag.id };
})
}
},
@ -78,6 +78,13 @@ export class OrderService {
})
)
);
this.eventEmitter.emit(
PortfolioChangedEvent.getName(),
new PortfolioChangedEvent({
userId
})
);
}
public async createOrder(