From c7829201e19eec2cfc5e7d523b3272f1c63a42c4 Mon Sep 17 00:00:00 2001 From: ankitsridhar16 Date: Thu, 9 Feb 2023 16:28:16 +0530 Subject: [PATCH] chore: commented out subscriptions --- .../src/shortcode/shortcode.resolver.ts | 35 ++++++++++--------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/packages/hoppscotch-backend/src/shortcode/shortcode.resolver.ts b/packages/hoppscotch-backend/src/shortcode/shortcode.resolver.ts index 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 { - 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 { + // return this.pubsub.asyncIterator(`shortcode/${user.uid}/revoked`); + // } }