You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
320 B

module OrganizationNotificationsHelper
def load_organization_notifications
carto_user = Carto::User.where(id: current_user.id).first if current_user
@organization_notifications = carto_user ? carto_user.received_notifications.unread.map { |n| Carto::Api::ReceivedNotificationPresenter.new(n) } : {}
end
end