From 120ae2c79d579b61c42ddc21a490aa02b009b7b8 Mon Sep 17 00:00:00 2001 From: Stavros Date: Mon, 15 Sep 2025 13:37:08 +0300 Subject: [PATCH] fix: bot suggestions --- frontend/src/components/icons/tailscale.tsx | 6 ++++-- internal/assets/migrations/000002_oauth_name.up.sql | 2 +- internal/utils/app_utils.go | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/icons/tailscale.tsx b/frontend/src/components/icons/tailscale.tsx index 3f7a15a..9381b5c 100644 --- a/frontend/src/components/icons/tailscale.tsx +++ b/frontend/src/components/icons/tailscale.tsx @@ -11,13 +11,15 @@ export function TailscaleIcon(props: SVGProps) { {...props} > ); diff --git a/internal/assets/migrations/000002_oauth_name.up.sql b/internal/assets/migrations/000002_oauth_name.up.sql index 91ff9dc..297ed2f 100644 --- a/internal/assets/migrations/000002_oauth_name.up.sql +++ b/internal/assets/migrations/000002_oauth_name.up.sql @@ -3,6 +3,6 @@ ALTER TABLE "sessions" ADD COLUMN "oauth_name" TEXT; UPDATE "sessions" SET - "oauth_name" = "Generic" + "oauth_name" = 'Generic' WHERE "oauth_name" IS NULL AND "provider" IS NOT NULL; diff --git a/internal/utils/app_utils.go b/internal/utils/app_utils.go index bf2a176..643c9cf 100644 --- a/internal/utils/app_utils.go +++ b/internal/utils/app_utils.go @@ -142,7 +142,9 @@ func GetOAuthProvidersConfig(env []string, args []string, appUrl string) (map[st for _, e := range env { pair := strings.SplitN(e, "=", 2) - envMap[pair[0]] = pair[1] + if len(pair) == 2 { + envMap[pair[0]] = pair[1] + } } envProviders, err := decoders.DecodeEnv(envMap)