Files
adamantium/slices/admin/commands/highlight/create.rb
2024-04-05 21:35:39 +11:00

17 lines
298 B
Ruby

module Admin
module Commands
module Highlight
class Create
include Dry::Monads[:result]
include Deps["repos.highlight_repo"]
def call(post_id:, text:)
highlight_repo.create(post_id:, text:)
Success()
end
end
end
end
end