From 958123154216fe86119d03bd61411f60e2057f43 Mon Sep 17 00:00:00 2001 From: Jan Date: Mon, 6 May 2024 13:04:25 +0200 Subject: [PATCH] Fix case for FunctionRegion --- .../jan/supabase/functions/FunctionRegion.kt | 30 +++++++++---------- .../jan/supabase/functions/Functions.kt | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Functions/src/commonMain/kotlin/io/github/jan/supabase/functions/FunctionRegion.kt b/Functions/src/commonMain/kotlin/io/github/jan/supabase/functions/FunctionRegion.kt index 2fe639b2..67d39f86 100644 --- a/Functions/src/commonMain/kotlin/io/github/jan/supabase/functions/FunctionRegion.kt +++ b/Functions/src/commonMain/kotlin/io/github/jan/supabase/functions/FunctionRegion.kt @@ -5,19 +5,19 @@ package io.github.jan.supabase.functions * @param value The value of the region */ enum class FunctionRegion(val value: String) { - Any("any"), - ApNortheast1("ap-northeast-1"), - ApNortheast2("ap-northeast-2"), - ApSouth1("ap-south-1"), - ApSoutheast1("ap-southeast-1"), - ApSoutheast2("ap-southeast-2"), - CaCentral1("ca-central-1"), - EuCentral1("eu-central-1"), - EuWest1("eu-west-1"), - EuWest2("eu-west-2"), - EuWest3("eu-west-3"), - SaEast1("sa-east-1"), - UsEast1("us-east-1"), - UsWest1("us-west-1"), - UsWest2("us-west-2"), + ANY("any"), + AP_NORTHEAST_1("ap-northeast-1"), + AP_NORTHEAST_2("ap-northeast-2"), + AP_SOUTH_1("ap-south-1"), + AP_SOUTHEAST_1("ap-southeast-1"), + AP_SOUTHEAST_2("ap-southeast-2"), + CA_CENTRAL_1("ca-central-1"), + EU_CENTRAL_1("eu-central-1"), + EU_WEST_1("eu-west-1"), + EU_WEST_2("eu-west-2"), + EU_WEST_3("eu-west-3"), + SA_EAST_1("sa-east-1"), + US_EAST_1("us-east-1"), + US_WEST_1("us-west-1"), + US_WEST_2("us-west-2"), } \ No newline at end of file diff --git a/Functions/src/commonMain/kotlin/io/github/jan/supabase/functions/Functions.kt b/Functions/src/commonMain/kotlin/io/github/jan/supabase/functions/Functions.kt index ef2946d6..fcc80726 100644 --- a/Functions/src/commonMain/kotlin/io/github/jan/supabase/functions/Functions.kt +++ b/Functions/src/commonMain/kotlin/io/github/jan/supabase/functions/Functions.kt @@ -148,7 +148,7 @@ class Functions(override val config: Config, override val supabaseClient: Supaba /** * The default region to use when invoking a function */ - var defaultRegion: FunctionRegion = FunctionRegion.Any + var defaultRegion: FunctionRegion = FunctionRegion.ANY }