Create FeedFinder module.

This commit is contained in:
Brent Simmons
2024-04-07 14:57:05 -07:00
parent 826ec7d413
commit c35187900a
26 changed files with 169 additions and 88 deletions

View File

@@ -297,10 +297,10 @@ public enum CreateReaderAPISubscriptionResult: Sendable {
// There is no call to get a single subscription entry, so we get them all,
// look up the one we just subscribed to and return that
guard let subscriptions = try await retrieveSubscriptions() else {
throw CommonError.createErrorNotFound
throw AccountError.createErrorNotFound
}
guard let subscription = subscriptions.first(where: { $0.feedID == subResult.streamID }) else {
throw CommonError.createErrorNotFound
throw AccountError.createErrorNotFound
}
return .created(subscription)