stringer-rss/stringer

View on GitHub
app/commands/fever_api/write_mark_group.rb

Summary

Maintainability
A
20 mins
Test Coverage
# frozen_string_literal: true

module FeverAPI::WriteMarkGroup
  def self.call(authorization:, **params)
    if params[:mark] == "group"
      authorization.check(Group.find(params[:id]))
      MarkGroupAsRead.call(params[:id], params[:before])
    end

    {}
  end
end