From 8b089a64784eb916d20dcb0b01f4520b25b6d11d Mon Sep 17 00:00:00 2001 From: WcaleNieWolny Date: Sun, 5 Jan 2025 19:07:58 +0000 Subject: [PATCH 1/2] chore: resolve TODOs --- src/components/tables/BundleTable.vue | 1 - src/pages/app/p/[p]/settings.vue | 1 - src/pages/dashboard/settings/organization/General.vue | 1 - supabase/functions/_backend/utils/stripe.ts | 10 +++++----- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/components/tables/BundleTable.vue b/src/components/tables/BundleTable.vue index 5cc7957ea6..c7ba7b489f 100644 --- a/src/components/tables/BundleTable.vue +++ b/src/components/tables/BundleTable.vue @@ -175,7 +175,6 @@ async function deleteOne(one: Element) { } try { - // todo: fix this for AB testing const { data: channelFound, error: errorChannel } = await supabase .from('channels') .select('name, version(name)') diff --git a/src/pages/app/p/[p]/settings.vue b/src/pages/app/p/[p]/settings.vue index d2d750dfb1..149957619b 100644 --- a/src/pages/app/p/[p]/settings.vue +++ b/src/pages/app/p/[p]/settings.vue @@ -215,7 +215,6 @@ async function setDefaultChannel() { } const isSuperAdmin = computed(() => { - // TODO: check if that is smart to not let admins delete apps if (!role.value) return false return organizationStore.hasPermisisonsInRole(role.value as any, ['super_admin']) diff --git a/src/pages/dashboard/settings/organization/General.vue b/src/pages/dashboard/settings/organization/General.vue index b0eada7869..57a8526c50 100644 --- a/src/pages/dashboard/settings/organization/General.vue +++ b/src/pages/dashboard/settings/organization/General.vue @@ -95,7 +95,6 @@ async function saveChanges(form: { orgName: string, email: string }) { .eq('id', gid) if (error) { - // TODO: INFORM USER THAT HE IS NOT ORG OWNER console.log(`Cannot save changes: ${error}`) // Revert the optimistic update diff --git a/supabase/functions/_backend/utils/stripe.ts b/supabase/functions/_backend/utils/stripe.ts index 8f8e62a5a5..4cd9c3d49b 100644 --- a/supabase/functions/_backend/utils/stripe.ts +++ b/supabase/functions/_backend/utils/stripe.ts @@ -111,11 +111,11 @@ export async function createCheckout(c: Context, customerId: string, reccurence: name: 'auto', }, tax_id_collection: { enabled: true }, - // TODO: find why this is not working as expected - // saved_payment_method_options: { - // allow_redisplay_filters: 'always', - // payment_method_save: true, - // }, + saved_payment_method_options: { + allow_redisplay_filters: ['always'], + payment_method_save: true, + }, + line_items: [ { price: prices.priceId, From 1f3bce04e061a2177821a756852405cf09f56b61 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:08:58 +0000 Subject: [PATCH 2/2] [autofix.ci] apply automated fixes --- supabase/functions/_backend/utils/stripe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supabase/functions/_backend/utils/stripe.ts b/supabase/functions/_backend/utils/stripe.ts index 4cd9c3d49b..4bf426a1ec 100644 --- a/supabase/functions/_backend/utils/stripe.ts +++ b/supabase/functions/_backend/utils/stripe.ts @@ -115,7 +115,7 @@ export async function createCheckout(c: Context, customerId: string, reccurence: allow_redisplay_filters: ['always'], payment_method_save: true, }, - + line_items: [ { price: prices.priceId,