Fix call to pinboard get

This commit is contained in:
2023-02-01 21:53:42 +11:00
parent 7e3341b656
commit dd31388c2c

View File

@@ -13,7 +13,7 @@ module Adamantium
def call(post:)
if pinboard.add(url: post[:url], description: post[:content]) == "done"
href = pinboard.get(url: post[:url]).href
href = pinboard.get(url: post[:url]).first.href
Success(href)
else
Failure(:failed_to_post_to_pinboard)