fix: bot suggestions

This commit is contained in:
Stavros
2025-09-15 13:37:08 +03:00
parent 060e20e578
commit 120ae2c79d
3 changed files with 8 additions and 4 deletions

View File

@@ -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;

View File

@@ -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)