rubocop: fix offenses that crept in

Change-Id: I667cca8c711e4e3ef3f9946bf66c9534bf73b3fa
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/318433
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Build-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
Cody Cutrer 2023-05-17 13:08:14 -06:00
parent c3947f9d68
commit c5fb729287
2 changed files with 7 additions and 7 deletions

View File

@ -2710,7 +2710,7 @@ class Submission < ActiveRecord::Base
end
def refresh_comment_read_state
unread_comments = visible_submission_comments.left_joins(:viewed_submission_comments).where.not(author: user).where(viewed_submission_comments: { id: nil }).exists?
unread_comments = visible_submission_comments.where.missing(:viewed_submission_comments).where.not(author: user).exists?
if unread_comments
mark_item_unread("comment")