Skip to content

Commit

Permalink
Merge pull request #632 from thoth-pub/feature/patch_orderby
Browse files Browse the repository at this point in the history
Feature/patch orderby
  • Loading branch information
ja573 authored Oct 1, 2024
2 parents c494d5c + daad344 commit d3c1505
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
- [565](https://github.com/thoth-pub/thoth/issues/565) - Don't generate Crossref metadata output if no DOIs (work or chapter) are present
- [632](https://github.com/thoth-pub/thoth/pull/632) - Add second order by clause (work\_id) to work queries for consistent ordering when multiple works share the same user-ordered field, such as publication date

## [[0.12.9]](https://github.com/thoth-pub/thoth/releases/tag/v0.12.9) - 2024-09-06
### Added
Expand Down
1 change: 1 addition & 0 deletions thoth-api/src/model/work/crud.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ impl Crud for Work {
);
}
match query
.then_order_by(dsl::work_id)
.limit(limit.into())
.offset(offset.into())
.load::<Work>(&mut connection)
Expand Down

0 comments on commit d3c1505

Please sign in to comment.