mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-04 10:54:30 +08:00
Fix session timEout counter refresh for unseen notification call [SCI-9647] (#6616)
This commit is contained in:
parent
9811ee7592
commit
77f37d13b2
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class UserNotificationsController < ApplicationController
|
||||
prepend_before_action -> { request.env['devise.skip_trackable'] = true }, only: :unseen_counter
|
||||
|
||||
def index
|
||||
page = (params[:page] || 1).to_i
|
||||
notifications = load_notifications.page(page).per(Constants::INFINITE_SCROLL_LIMIT).without_count
|
||||
|
|
Loading…
Add table
Reference in a new issue