[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
def mark_read
current_account.notifications.find(params[:id]).mark_read!
# current_account.notifications.find(params[:id]).mark_read!
render_empty_success
end

View File

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

View File

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