Skip to content

mark_as_read! :all, for: current_user is not working as intended #119

@masudhossain

Description

@masudhossain

I noticed that doing mark_ass_read! :all, for: current_user does not work, but mark_as_read! for: current_user works fine. I'm not sure if i'm doing anything wrong, but when i run it, it returns nil for some reason as well.

https://prnt.sc/v7iroq

Doesn't work

@organization.replays.mark_as_read! :all, for: current_user

Works

@organization.replays.each do |replay|
        replay.mark_as_read! for: current_user
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions