From 813a08e9a079a34372599597ef0ad4495f6f6cbd Mon Sep 17 00:00:00 2001 From: Sense T Date: Wed, 17 May 2023 12:57:50 +0800 Subject: [PATCH] small bug fix --- src/db_controller.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/db_controller.rs b/src/db_controller.rs index a48e5ba..b22bfdb 100644 --- a/src/db_controller.rs +++ b/src/db_controller.rs @@ -139,6 +139,7 @@ impl Controller { let pagination = Record::find() .find_also_related(User) .filter(RecordColumn::UserId.eq(user.id)) + .order_by_asc(RecordColumn::Id) .paginate(&transaction, PAGE_SIZE); Ok(Some(PaginatedRecordData { current_data: pagination.fetch_page(page).await?,