mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-05 03:44:36 -05:00
Fix Graphql-WS errors and Improve Downloader Subscription (#634)
* Fix errors in graphql-ws * Send download messages more often
This commit is contained in:
@@ -112,7 +112,7 @@ class ApolloSubscriptionProtocolHandler(
|
||||
return subscriptionHandler.executeSubscription(request, graphQLContext)
|
||||
.map {
|
||||
if (it.errors?.isNotEmpty() == true) {
|
||||
SubscriptionOperationMessage(type = GQL_ERROR.type, id = operationMessage.id, payload = it)
|
||||
SubscriptionOperationMessage(type = GQL_ERROR.type, id = operationMessage.id, payload = it.errors)
|
||||
} else {
|
||||
SubscriptionOperationMessage(type = GQL_NEXT.type, id = operationMessage.id, payload = it)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user