Show oldest registration applications first (ref #4122) (#4123)

* Show oldest registration applications first (ref #4122)

* fix tests
This commit is contained in:
Nutomic 2023-11-02 12:38:46 +01:00 committed by GitHub
parent df53d2a0e8
commit 1e59e7ab47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@ fn queries<'a>() -> Queries<
query = query
.limit(limit)
.offset(offset)
.order_by(registration_application::published.desc());
.order_by(registration_application::published.asc());
query.load::<RegistrationApplicationView>(&mut conn).await
};
@ -308,7 +308,7 @@ mod tests {
assert_eq!(
apps,
[read_jess_app_view.clone(), expected_sara_app_view.clone()]
[expected_sara_app_view.clone(), read_jess_app_view.clone()]
);
// Make sure the counts are correct