The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add default array for cron http headers (#33255)
Joshen Lim1ca992100a19
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet.tsxindex 2e25afb4ee2..6f55214def4 100644--- a/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet.tsx+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet.tsx@@ -17,6 +17,7 @@ import { CronJob, useCronJobsQuery } from 'data/database-cron-jobs/database-cronimport { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query'import { useSendEventMutation } from 'data/telemetry/send-event-mutation'import { useCheckPermissions } from 'hooks/misc/useCheckPermissions'+import { useSelectedOrganization } from 'hooks/misc/useSelectedOrganization'import {Button,Form_Shadcn_,@@ -50,7 +51,6 @@ import { HTTPHeaderFieldsSection } from './HttpHeaderFieldsSection'import { HttpRequestSection } from './HttpRequestSection'import { SqlFunctionSection } from './SqlFunctionSection'import { SqlSnippetSection } from './SqlSnippetSection'-import { useSelectedOrganization } from 'hooks/misc/useSelectedOrganization'export interface CreateCronJobSheetProps {selectedCronJob?: Pick<CronJob, 'jobname' | 'schedule' | 'active' | 'command'>diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobs.utils.ts b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobs.utils.tsindex 10f77fcd892..1070a1419af 100644--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobs.utils.ts+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobs.utils.ts@@ -12,7 +12,7 @@ export const buildCronQuery = (name: string, schedule: string, command: string)export const buildHttpRequestCommand = (method: 'GET' | 'POST',url: string,- headers: HTTPHeader[],+ headers: HTTPHeader[] = [],body: string | undefined,timeout: number) => {