fix rewards to also pay post tippers
This commit is contained in:
parent
a0874c6c52
commit
512b9257d2
@ -79,7 +79,7 @@ function earn ({ models }) {
|
||||
GROUP BY "userId", "parentId" IS NULL
|
||||
)
|
||||
SELECT "userId", NULL as id, type, ROW_NUMBER() OVER (PARTITION BY "isPost" ORDER BY upvoter_ratio DESC) as rank,
|
||||
upvoter_ratio/(sum(upvoter_ratio) OVER (PARTITION BY "isPost")) as proportion
|
||||
upvoter_ratio/(sum(upvoter_ratio) OVER (PARTITION BY "isPost"))/2 as proportion
|
||||
FROM upvoter_ratios
|
||||
WHERE upvoter_ratio > 0`)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user