Fix subscription ignores OP replies (#1272)
This commit is contained in:
parent
ea8ad5c4c9
commit
7fd4f58e81
|
@ -215,8 +215,7 @@ export async function onPaid ({ invoice, id }, context) {
|
||||||
INSERT INTO "Reply" (created_at, updated_at, "ancestorId", "ancestorUserId", "itemId", "userId", level)
|
INSERT INTO "Reply" (created_at, updated_at, "ancestorId", "ancestorUserId", "itemId", "userId", level)
|
||||||
SELECT comment.created_at, comment.updated_at, ancestors.id, ancestors."userId",
|
SELECT comment.created_at, comment.updated_at, ancestors.id, ancestors."userId",
|
||||||
comment.id, comment."userId", nlevel(comment.path) - nlevel(ancestors.path)
|
comment.id, comment."userId", nlevel(comment.path) - nlevel(ancestors.path)
|
||||||
FROM ancestors, comment
|
FROM ancestors, comment`
|
||||||
WHERE ancestors."userId" <> comment."userId"`
|
|
||||||
|
|
||||||
notifyItemParents({ item, models }).catch(console.error)
|
notifyItemParents({ item, models }).catch(console.error)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue