mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 08:42:51 +00:00
Create FeedFinder module.
This commit is contained in:
1 parent
826ec7d413
commit
c35187900a
26 files changed
+169
-88
No files matched your search
@@ -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