Skip to content

Commit

Permalink
Ids are Ints
Browse files Browse the repository at this point in the history
  • Loading branch information
emhoracek committed Apr 22, 2021
1 parent 8808e4c commit 7ae9788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Web/Offset/Feed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ getAuthorViaReq wp v =

getAuthorsViaReq :: Wordpress b -> Object -> IO [WPPerson]
getAuthorsViaReq wp v =
do let mAuthorId = parseMaybe (\obj -> obj .: "authors") v :: Maybe [T.Text]
do let mAuthorId = parseMaybe (\obj -> obj .: "authors") v :: Maybe [Int]
case mAuthorId of
Nothing -> return []
Just authorIds ->
Expand Down

0 comments on commit 7ae9788

Please sign in to comment.