Wednesday, July 15, 2026 4:01:32 AM
> requests_accept.rb
# frozen_string_literal: true

module ESM
  module Website
    class API
      module Handlers
        ##
        # Accepts a pending request, triggering whatever follow-up the originating
        # command registered. No-op when the request has already been resolved.
        #
        class RequestsAccept
          def self.call(id:, **)
            request = ESM::Request.find_by(id:)
            return if request.nil?

            request.respond(true)
          end
        end
      end
    end
  end
end
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 43aa0d7