Skip to content

Commit 367e7ab

Browse files
Park JuhyungPark Juhyung
authored andcommitted
Use shift to remove the first item in pagination
1 parent b4f63dd commit 367e7ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routers/pagination.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function createPaginationResult<Row>(params: {
2424
if (order === "forward") {
2525
rows.pop();
2626
} else if (order === "reverse") {
27-
rows.unshift();
27+
rows.shift();
2828
}
2929
}
3030

0 commit comments

Comments
 (0)