fix subscription check on mute (#1177)
This commit is contained in:
parent
a585ba7f0a
commit
a71b9be03f
|
@ -749,7 +749,7 @@ export default {
|
|||
}
|
||||
}
|
||||
})
|
||||
if (subscription.postsSubscribedAt || subscription.commentsSubscribedAt) {
|
||||
if (subscription?.postsSubscribedAt || subscription?.commentsSubscribedAt) {
|
||||
throw new GraphQLError("you can't mute a stacker to whom you've subscribed", { extensions: { code: 'BAD_INPUT' } })
|
||||
}
|
||||
await models.mute.create({ data: { ...lookupData } })
|
||||
|
|
Loading…
Reference in New Issue