Skip to content

Commit 6a44750

Browse files
committed
fix: remove numeric based pagination
Refer: #5185 (comment)
1 parent 539fb30 commit 6a44750

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/controllers/crate_owner_invitation.rs

+1-10
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,7 @@ fn prepare_list(
139139
)
140140
.load(&*conn)?
141141
}
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)?,
142+
Page::Numeric(_) => unreachable!("page-based pagination is disabled"),
152143
};
153144
let next_page = if raw_invitations.len() > pagination.per_page as usize {
154145
// We fetch `per_page + 1` to check if there are records for the next page. Since the last

0 commit comments

Comments
 (0)