mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
More metrics fixes
This commit is contained in:
parent
95fa8a3dbc
commit
a04ea35087
@ -27,7 +27,7 @@ async function loadUsersByCountry(tenancy: Tenancy, includeAnonymous: boolean =
|
||||
ON "Event"."endUserIpInfoGuessId" = eip.id
|
||||
WHERE '$user-activity' = ANY("systemEventTypeIds"::text[])
|
||||
AND "data"->>'projectId' = ${tenancy.project.id}
|
||||
AND (${includeAnonymous} OR "data"->>'isAnonymous' != 'true')
|
||||
AND (${includeAnonymous} OR NOT "data"->>'isAnonymous' = 'true')
|
||||
AND COALESCE("data"->>'branchId', 'main') = ${tenancy.branchId}
|
||||
AND "countryCode" IS NOT NULL
|
||||
ORDER BY "userId", "eventStartedAt" DESC
|
||||
|
||||
Loading…
Reference in New Issue
Block a user