chore: commented out subscriptions
This commit is contained in:
committed by
Balu Babu
parent
63b6c76f51
commit
c7829201e1
@@ -164,21 +164,22 @@ export class ShortcodeResolver {
|
|||||||
|
|
||||||
/* Subscriptions */
|
/* Subscriptions */
|
||||||
|
|
||||||
@Subscription(() => Shortcode, {
|
// TODO: update subscription after fixing service methods
|
||||||
description: 'Listen for shortcode creation',
|
// @Subscription(() => Shortcode, {
|
||||||
resolve: (value) => value,
|
// description: 'Listen for shortcode creation',
|
||||||
})
|
// resolve: (value) => value,
|
||||||
@UseGuards(GqlAuthGuard)
|
// })
|
||||||
myShortcodesCreated(@GqlUser() user: AuthUser) {
|
// @UseGuards(GqlAuthGuard)
|
||||||
return this.pubsub.asyncIterator(`shortcode/${user.uid}/created`);
|
// myShortcodesCreated(@GqlUser() user: AuthUser) {
|
||||||
}
|
// return this.pubsub.asyncIterator(`shortcode/${user.uid}/created`);
|
||||||
|
// }
|
||||||
@Subscription(() => Shortcode, {
|
//
|
||||||
description: 'Listen for shortcode deletion',
|
// @Subscription(() => Shortcode, {
|
||||||
resolve: (value) => value,
|
// description: 'Listen for shortcode deletion',
|
||||||
})
|
// resolve: (value) => value,
|
||||||
@UseGuards(GqlAuthGuard)
|
// })
|
||||||
myShortcodesRevoked(@GqlUser() user: AuthUser): AsyncIterator<Shortcode> {
|
// @UseGuards(GqlAuthGuard)
|
||||||
return this.pubsub.asyncIterator(`shortcode/${user.uid}/revoked`);
|
// myShortcodesRevoked(@GqlUser() user: AuthUser): AsyncIterator<Shortcode> {
|
||||||
}
|
// return this.pubsub.asyncIterator(`shortcode/${user.uid}/revoked`);
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user