feat: user settings create subscription added and fixed typos
This commit is contained in:
@@ -58,6 +58,15 @@ export class UserSettingsResolver {
|
||||
|
||||
/* Subscriptions */
|
||||
|
||||
@Subscription(() => UserSettings, {
|
||||
description: 'Listen for user setting creates',
|
||||
resolve: (value) => value,
|
||||
})
|
||||
@UseGuards(GqlAuthGuard)
|
||||
userSettingsCreated(@GqlUser() user: User) {
|
||||
return this.pubsub.asyncIterator(`user_settings/${user.uid}/created`);
|
||||
}
|
||||
|
||||
@Subscription(() => UserSettings, {
|
||||
description: 'Listen for user setting updates',
|
||||
resolve: (value) => value,
|
||||
|
||||
Reference in New Issue
Block a user