[temp] Disable mark_read and some failing updates until they can be fixed.

This commit is contained in:
Fosco Marotto 2021-01-28 20:51:05 -05:00
parent cf691f491c
commit 7a3cbe60ec
3 changed files with 5 additions and 3 deletions

View File

@ -25,7 +25,7 @@ class Api::V1::NotificationsController < Api::BaseController
end end
def mark_read def mark_read
current_account.notifications.find(params[:id]).mark_read! # current_account.notifications.find(params[:id]).mark_read!
render_empty_success render_empty_success
end end

View File

@ -17,6 +17,7 @@ module SessionTrackingConcern
end end
def session_needs_update? 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
end end

View File

@ -17,6 +17,7 @@ module UserTrackingConcern
end end
def user_needs_sign_in_update? 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
end end