Fix session timEout counter refresh for unseen notification call [SCI-9647] (#6616)

This commit is contained in:
ajugo 2023-11-10 10:06:00 +01:00 committed by GitHub
parent 9811ee7592
commit 77f37d13b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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