app/services/funnel/doc_auth/register_view_step.rb
# frozen_string_literal: true
module Funnel
module DocAuth
class RegisterViewStep
def self.call(doc_auth_log, issuer, token, _success)
doc_auth_log["#{token}_view_at"] = Time.zone.now
doc_auth_log["#{token}_view_count"] += 1
doc_auth_log.issuer = issuer
doc_auth_log.save
end
end
end
end