From 1e59e7ab47f4a57f048d1bb2f589fd0e73757490 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Thu, 2 Nov 2023 12:38:46 +0100 Subject: [PATCH] Show oldest registration applications first (ref #4122) (#4123) * Show oldest registration applications first (ref #4122) * fix tests --- crates/db_views/src/registration_application_view.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/db_views/src/registration_application_view.rs b/crates/db_views/src/registration_application_view.rs index 0bdd50cf1..1c0c859e8 100644 --- a/crates/db_views/src/registration_application_view.rs +++ b/crates/db_views/src/registration_application_view.rs @@ -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::(&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