Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
chore: commented out subscriptions
ankitsridhar16c7829201e19e
diff --git a/packages/hoppscotch-backend/src/shortcode/shortcode.resolver.ts b/packages/hoppscotch-backend/src/shortcode/shortcode.resolver.tsindex 0b195d7e7..bd8171a67 100644--- a/packages/hoppscotch-backend/src/shortcode/shortcode.resolver.ts+++ b/packages/hoppscotch-backend/src/shortcode/shortcode.resolver.ts@@ -164,21 +164,22 @@ export class ShortcodeResolver {/* Subscriptions */- @Subscription(() => Shortcode, {- description: 'Listen for shortcode creation',- resolve: (value) => value,- })- @UseGuards(GqlAuthGuard)- myShortcodesCreated(@GqlUser() user: AuthUser) {- return this.pubsub.asyncIterator(`shortcode/${user.uid}/created`);- }-- @Subscription(() => Shortcode, {- description: 'Listen for shortcode deletion',- resolve: (value) => value,- })- @UseGuards(GqlAuthGuard)- myShortcodesRevoked(@GqlUser() user: AuthUser): AsyncIterator<Shortcode> {- return this.pubsub.asyncIterator(`shortcode/${user.uid}/revoked`);- }+ // TODO: update subscription after fixing service methods+ // @Subscription(() => Shortcode, {+ // description: 'Listen for shortcode creation',+ // resolve: (value) => value,+ // })+ // @UseGuards(GqlAuthGuard)+ // myShortcodesCreated(@GqlUser() user: AuthUser) {+ // return this.pubsub.asyncIterator(`shortcode/${user.uid}/created`);+ // }+ //+ // @Subscription(() => Shortcode, {+ // description: 'Listen for shortcode deletion',+ // resolve: (value) => value,+ // })+ // @UseGuards(GqlAuthGuard)+ // myShortcodesRevoked(@GqlUser() user: AuthUser): AsyncIterator<Shortcode> {+ // return this.pubsub.asyncIterator(`shortcode/${user.uid}/revoked`);+ // }}