fix error

This commit is contained in:
BoHung Chiu 2023-04-20 21:38:05 +08:00
parent d910d3d99b
commit 23677b4798
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class Admin::RulingTimersController < OrbitMemberController
if page <= 1 if page <= 1
@ruling_timer_history = @ruling_timer_history.page(0).per(per - 1) @ruling_timer_history = @ruling_timer_history.page(0).per(per - 1)
else else
@ruling_timer_history = @ruling_timer_history.limit(per).skip(per * page - 1) @ruling_timer_history = @ruling_timer_history.limit(per).skip(per * (page - 1) - 1)
@ruling_timer_temp = nil @ruling_timer_temp = nil
end end
end end