mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Create FeedFinder module.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user