stringer-rss/stringer

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

Summary

Maintainability
A
20 mins
Test Coverage
# frozen_string_literal: true

module FeverAPI::WriteMarkFeed
  def self.call(authorization:, **params)
    if params[:mark] == "feed"
      authorization.check(Feed.find(params[:id]))
      MarkFeedAsRead.call(params[:id], params[:before])
    end

    {}
  end
end