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

* Show oldest registration applications first (ref #4122)

* fix tests
add_creator_is_moderator_to_other_views
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
1 changed files with 2 additions and 2 deletions

View File

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