We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 539fb30 commit 6a44750Copy full SHA for 6a44750
src/controllers/crate_owner_invitation.rs
@@ -139,16 +139,7 @@ fn prepare_list(
139
)
140
.load(&*conn)?
141
}
142
- 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)?,
+ Page::Numeric(_) => unreachable!("page-based pagination is disabled"),
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