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

* Show oldest registration applications first (ref #4122)

* fix tests
pull/4104/head^2
Nutomic 7 months ago committed by GitHub
parent df53d2a0e8
commit 1e59e7ab47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save