We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c664493 commit c99229bCopy full SHA for c99229b
src/controllers/crate_owner_invitation.rs
@@ -139,7 +139,16 @@ fn prepare_list(
139
)
140
.load(&*conn)?
141
}
142
- Page::Numeric(_) => unreachable!("page-based pagination is disabled"),
+ Page::Numeric(_) => query
143
+ .pages_pagination(pagination)
144
+ .filter(
145
+ crate_owner_invitations::crate_id.gt(seek_key.0).or(
146
+ crate_owner_invitations::crate_id
147
+ .eq(seek_key.0)
148
+ .and(crate_owner_invitations::invited_user_id.gt(seek_key.1)),
149
+ ),
150
+ )
151
+ .load(&*conn)?,
152
};
153
let next_page = if raw_invitations.len() > pagination.per_page as usize {
154
// We fetch `per_page + 1` to check if there are records for the next page. Since the last
0 commit comments