Skip to content

Commit 344c23e

Browse files
committed
use max zap creation
1 parent b71398a commit 344c23e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worker/trust.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ async function getGraph (models, subName, postTrust = true, seeds = GLOBAL_SEEDS
174174
'trust', CASE WHEN total_trust > 0 THEN trust / total_trust::float ELSE 0 END)) AS hops
175175
FROM (
176176
WITH user_votes AS (
177-
SELECT "ItemAct"."userId" AS user_id, users.name AS name, "ItemAct"."itemId" AS item_id, min("ItemAct".created_at) AS act_at,
177+
SELECT "ItemAct"."userId" AS user_id, users.name AS name, "ItemAct"."itemId" AS item_id, max("ItemAct".created_at) AS act_at,
178178
users.created_at AS user_at, "ItemAct".act = 'DONT_LIKE_THIS' AS against,
179179
count(*) OVER (partition by "ItemAct"."userId") AS user_vote_count,
180180
sum("ItemAct".msats) as user_msats

0 commit comments

Comments
 (0)