Fix call to pinboard get
This commit is contained in:
@@ -13,7 +13,7 @@ module Adamantium
|
|||||||
|
|
||||||
def call(post:)
|
def call(post:)
|
||||||
if pinboard.add(url: post[:url], description: post[:content]) == "done"
|
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)
|
Success(href)
|
||||||
else
|
else
|
||||||
Failure(:failed_to_post_to_pinboard)
|
Failure(:failed_to_post_to_pinboard)
|
||||||
|
Reference in New Issue
Block a user