Replace Makara with an initial Rails 6 role based splitting method.
This commit is contained in:
committed by
admin
parent
31922ea58b
commit
473c48b2aa
@@ -27,7 +27,6 @@ class Api::V1::NotificationsController < Api::BaseController
|
||||
def mark_read
|
||||
if !params[:id].nil? and !current_account.user.nil?
|
||||
conn = ActiveRecord::Base.connection
|
||||
conn.stick_to_master!
|
||||
conn.exec_query "update users set last_read_notification = #{params[:id].to_i} where id = #{current_account.user.id}"
|
||||
end
|
||||
# current_account.notifications.find(params[:id]).mark_read!
|
||||
|
||||
Reference in New Issue
Block a user