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