Browse Source
Merge branch 'main' into feature/improve-language-localization-for-de-20240709
pull/3555/head
Thomas Kaul
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
7 additions and
2 deletions
-
CHANGELOG.md
-
apps/api/src/app/order/order.service.ts
|
|
@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
- Improved the language localization for German (`de`) |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
- Fixed a pagination issue in the activities endpoint by adding `id` as a secondary sort criterion to `date` to ensure consistent ordering |
|
|
|
|
|
|
|
## 2.93.0 - 2024-07-07 |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
@ -291,7 +291,8 @@ export class OrderService { |
|
|
|
withExcludedAccounts?: boolean; |
|
|
|
}): Promise<Activities> { |
|
|
|
let orderBy: Prisma.Enumerable<Prisma.OrderOrderByWithRelationInput> = [ |
|
|
|
{ date: 'asc' } |
|
|
|
{ date: 'asc' }, |
|
|
|
{ id: 'asc' } |
|
|
|
]; |
|
|
|
const where: Prisma.OrderWhereInput = { userId }; |
|
|
|
|
|
|
@ -367,7 +368,7 @@ export class OrderService { |
|
|
|
} |
|
|
|
|
|
|
|
if (sortColumn) { |
|
|
|
orderBy = [{ [sortColumn]: sortDirection }]; |
|
|
|
orderBy = [{ [sortColumn]: sortDirection }, { id: sortDirection }]; |
|
|
|
} |
|
|
|
|
|
|
|
if (types) { |
|
|
|