fix #1754
This commit is contained in:
parent
eb22fdab41
commit
74f771adf4
|
@ -223,7 +223,7 @@ export async function onPaid ({ invoice, id }, context) {
|
||||||
), ancestors AS (
|
), ancestors AS (
|
||||||
UPDATE "Item"
|
UPDATE "Item"
|
||||||
SET ncomments = "Item".ncomments + 1,
|
SET ncomments = "Item".ncomments + 1,
|
||||||
"lastCommentAt" = now(),
|
"lastCommentAt" = GREATEST("Item"."lastCommentAt", comment.created_at),
|
||||||
"weightedComments" = "Item"."weightedComments" +
|
"weightedComments" = "Item"."weightedComments" +
|
||||||
CASE WHEN comment."userId" = "Item"."userId" THEN 0 ELSE comment.trust END
|
CASE WHEN comment."userId" = "Item"."userId" THEN 0 ELSE comment.trust END
|
||||||
FROM comment
|
FROM comment
|
||||||
|
|
Loading…
Reference in New Issue