From 7a3cbe60ecd1246ba91ee55ceb3e9a69831bda83 Mon Sep 17 00:00:00 2001 From: Fosco Marotto Date: Thu, 28 Jan 2021 20:51:05 -0500 Subject: [PATCH] [temp] Disable mark_read and some failing updates until they can be fixed. --- app/controllers/api/v1/notifications_controller.rb | 2 +- app/controllers/concerns/session_tracking_concern.rb | 3 ++- app/controllers/concerns/user_tracking_concern.rb | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/v1/notifications_controller.rb b/app/controllers/api/v1/notifications_controller.rb index e8ef7f86..00679633 100644 --- a/app/controllers/api/v1/notifications_controller.rb +++ b/app/controllers/api/v1/notifications_controller.rb @@ -25,7 +25,7 @@ class Api::V1::NotificationsController < Api::BaseController end def mark_read - current_account.notifications.find(params[:id]).mark_read! + # current_account.notifications.find(params[:id]).mark_read! render_empty_success end diff --git a/app/controllers/concerns/session_tracking_concern.rb b/app/controllers/concerns/session_tracking_concern.rb index 45361b01..49fb6b1e 100644 --- a/app/controllers/concerns/session_tracking_concern.rb +++ b/app/controllers/concerns/session_tracking_concern.rb @@ -17,6 +17,7 @@ module SessionTrackingConcern end def session_needs_update? - !current_session.nil? && current_session.updated_at < UPDATE_SIGN_IN_HOURS.hours.ago + # !current_session.nil? && current_session.updated_at < UPDATE_SIGN_IN_HOURS.hours.ago + false end end diff --git a/app/controllers/concerns/user_tracking_concern.rb b/app/controllers/concerns/user_tracking_concern.rb index be10705f..487eb907 100644 --- a/app/controllers/concerns/user_tracking_concern.rb +++ b/app/controllers/concerns/user_tracking_concern.rb @@ -17,6 +17,7 @@ module UserTrackingConcern end def user_needs_sign_in_update? - user_signed_in? && (current_user.current_sign_in_at.nil? || current_user.current_sign_in_at < UPDATE_SIGN_IN_HOURS.hours.ago) + # user_signed_in? && (current_user.current_sign_in_at.nil? || current_user.current_sign_in_at < UPDATE_SIGN_IN_HOURS.hours.ago) + false end end