mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 06:39:09 +03:00
fix: updates auth report query
This commit is contained in:
1 parent
3c9087d7cc
commit
8d38d566ea
1 file changed
+3
-3
@@ -32,9 +32,9 @@ const metricSqlMap: Record<
|
||||
return `
|
||||
select
|
||||
timestamp_trunc(timestamp, ${granularity}) as timestamp,
|
||||
count(distinct json_value(f.event_message, "$.user_id")) as count
|
||||
count(distinct json_value(f.event_message, "$.auth_event.actor_id")) as count
|
||||
from auth_logs f
|
||||
where json_value(f.event_message, "$.action") in (
|
||||
where json_value(f.event_message, "$.auth_event.action") in (
|
||||
'login', 'user_signedup', 'token_refreshed', 'user_modified',
|
||||
'user_recovery_requested', 'user_reauthenticate_requested'
|
||||
)
|
||||
@@ -65,7 +65,7 @@ const metricSqlMap: Record<
|
||||
timestamp_trunc(timestamp, ${granularity}) as timestamp,
|
||||
count(*) as count
|
||||
from auth_logs f
|
||||
where json_value(f.event_message, "$..action") = 'user_recovery_requested'
|
||||
where json_value(f.event_message, "$.auth_event.action") = 'user_recovery_requested'
|
||||
and timestamp >= '${start}'
|
||||
and timestamp < '${end}'
|
||||
group by timestamp
|
||||
|
||||
Reference in new issue
Block a user