Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
casesandberg committed Oct 21, 2024
1 parent aebc718 commit dce815d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/comments/lib/createComment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ export async function createComment({
} else if (entityType === 'LIST') {
const list = await getList({ id: entityId })

if ([authorId, comment.parent?.authorId, ...userIdsMentioned].includes(list.ownerId)) return

if (authorId !== list.ownerId) {
if (![authorId, comment.parent?.authorId, ...userIdsMentioned].includes(list.ownerId)) {
createNotification({
type: 'LIST_COMMENT',
actorId: authorId,
Expand Down

0 comments on commit dce815d

Please sign in to comment.