The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: revert chart extension date intervals
TzeYiing478f79dfa300
diff --git a/studio/components/interfaces/Settings/Logs/Logs.utils.ts b/studio/components/interfaces/Settings/Logs/Logs.utils.tsindex e008c1829f5..3351860f568 100644--- a/studio/components/interfaces/Settings/Logs/Logs.utils.ts+++ b/studio/components/interfaces/Settings/Logs/Logs.utils.ts@@ -174,12 +174,12 @@ export const calcChartStart = (params: Partial<LogsEndpointParams>): [Dayjs, strconst ite = params.iso_timestamp_end ? dayjs(params.iso_timestamp_end) : dayjs()const its = params.iso_timestamp_start ? dayjs(params.iso_timestamp_start) : dayjs()let trunc = 'minute'- let extendValue = 60 * 1+ let extendValue = 60 * 6const minuteDiff = ite.diff(its, 'minute')const hourDiff = ite.diff(its, 'hour')- if (minuteDiff > (60 * 8)) {+ if (minuteDiff > (60 * 12)) {trunc = 'hour'- extendValue = 24 * 3+ extendValue = 24 * 5} else if (hourDiff > 24 * 3) {trunc = 'day'extendValue = 7