From 77f37d13b2a3b3f58d65ccdbcdd9ed504b7f4ea4 Mon Sep 17 00:00:00 2001 From: ajugo Date: Fri, 10 Nov 2023 10:06:00 +0100 Subject: [PATCH] Fix session timEout counter refresh for unseen notification call [SCI-9647] (#6616) --- app/controllers/user_notifications_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/user_notifications_controller.rb b/app/controllers/user_notifications_controller.rb index 214ccc033..d1b5e144c 100644 --- a/app/controllers/user_notifications_controller.rb +++ b/app/controllers/user_notifications_controller.rb @@ -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