File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,18 +25,18 @@ const findMaxiUsers = async () => {
25
25
( category ) => category . id ,
26
26
) ;
27
27
28
- const usersWithFarcaster = await prisma . user . findMany ( {
28
+ const farcasterConnections = await prisma . farcasterConnection . findMany ( {
29
29
where : {
30
- farcasterConnection : {
31
- isNot : null ,
32
- thankYouCastSent : false ,
33
- } ,
30
+ thankYouCastSent : false ,
34
31
} ,
35
32
select : {
36
- id : true ,
33
+ userId : true ,
37
34
} ,
38
35
} ) ;
39
- const userIdsWithFarcaster = usersWithFarcaster . map ( ( user ) => user . id ) ;
36
+
37
+ const userIdsWithFarcaster = farcasterConnections . map (
38
+ ( connection ) => connection . userId ,
39
+ ) ;
40
40
41
41
// Find users who have delegated or attested to all categories (Collection + Budget)
42
42
const maxiUsers = await prisma . user . findMany ( {
You can’t perform that action at this time.
0 commit comments