Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
Fix /all endpoint response
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviocc committed Dec 30, 2020
1 parent 753c408 commit aec5267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/PinboardKit/API/PostsAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public protocol PostsAPI {
fromDate: Date?,
toDate: Date?,
meta: Int?
) -> AnyPublisher<RecentResponse, Error>
) -> AnyPublisher<[PostResponse], Error>

/// Returns a list of popular tags and recommended tags for a given URL.
func suggest(
Expand Down Expand Up @@ -140,7 +140,7 @@ extension PinboardAPI: PostsAPI {
fromDate: Date? = nil,
toDate: Date? = nil,
meta: Int? = nil
) -> AnyPublisher<RecentResponse, Error> {
) -> AnyPublisher<[PostResponse], Error> {
networkClient
.run(
makeAllRequest(
Expand Down

0 comments on commit aec5267

Please sign in to comment.