fix the build

This commit is contained in:
Régis Hanol
2018-05-26 03:11:10 +02:00
parent 338d39265a
commit 5b2e7c8d10
3 changed files with 7 additions and 10 deletions

View File

@ -254,6 +254,8 @@ class ApplicationController < ActionController::Base
if notifications.present?
notification_ids = notifications.split(",").map(&:to_i)
Notification.read(current_user, notification_ids)
current_user.reload
current_user.publish_notifications_state
cookies.delete('cn')
end
end