small bug fix

This commit is contained in:
Sense T 2023-05-17 12:57:50 +08:00
parent 4e5d354764
commit 813a08e9a0

View File

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