Send bookmarks to Raindrop

This commit is contained in:
2023-06-21 21:26:01 +10:00
parent 164e7496fd
commit 02ade37265
4 changed files with 27 additions and 9 deletions

View File

@@ -5,7 +5,8 @@ module Adamantium
module Posts
class CreateBookmark < Command
include Deps["repos.post_repo",
syndicate: "commands.posts.syndicate"
syndicate: "commands.posts.syndicate",
raindrop: "syndication.raindrop"
]
include Dry::Monads[:result]
@@ -14,6 +15,7 @@ module Adamantium
created_bookmark = post_repo.create(bookmark)
syndicate.call(created_bookmark.id, bookmark)
raindrop.call(post: created_bookmark)
Success(created_bookmark)
end