File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ def mark_notification_as_read_if_present
1111 return if params [ :notification_id ] . blank?
1212
1313 notification = current_jobseeker . notifications . find_by ( id : params [ :notification_id ] )
14- notification &.mark_as_read!
14+ notification &.mark_as_read
1515 end
1616 end
1717end
Original file line number Diff line number Diff line change @@ -22,12 +22,9 @@ def check_ats_interstitial_acknowledged
2222
2323 def mark_notification_as_read_if_present
2424 return if params [ :notification_id ] . blank?
25- return if current_publisher . blank?
2625
2726 notification = current_publisher . notifications . find_by ( id : params [ :notification_id ] )
28- notification &.mark_as_read!
29- rescue StandardError => e
30- Rails . logger . error ( "Failed to mark notification as read: #{ e . message } " )
27+ notification &.mark_as_read
3128 end
3229 end
3330end
You can’t perform that action at this time.
0 commit comments