stringer-rss/stringer

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

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module FeverAPI::Authentication
  def self.call(authorization:, **_params)
    feeds = authorization.scope(Feed)
    last_refreshed_on_time = (feeds.maximum(:last_fetched) || 0).to_i

    { auth: 1, last_refreshed_on_time: }
  end
end