Spaces:
Running
Running
Commit ·
b31bf42
1
Parent(s): abe7655
ok
Browse files
whatsapp-service/pkg/config/config.go
CHANGED
|
@@ -18,9 +18,9 @@ import (
|
|
| 18 |
|
| 19 |
type Config struct {
|
| 20 |
// Supabase (PostgREST API + native Postgres for whatsmeow store/wasmeow)
|
| 21 |
-
SupabaseURL
|
| 22 |
-
SupabaseServiceKey
|
| 23 |
-
SupabaseDBURL
|
| 24 |
DatabaseSaveMessages bool
|
| 25 |
GlobalApiKey string
|
| 26 |
WaDebug string
|
|
@@ -270,9 +270,9 @@ func Load() *Config {
|
|
| 270 |
}
|
| 271 |
|
| 272 |
config := &Config{
|
| 273 |
-
SupabaseURL:
|
| 274 |
-
SupabaseServiceKey:
|
| 275 |
-
SupabaseDBURL:
|
| 276 |
DatabaseSaveMessages: databaseSaveMessages == "true",
|
| 277 |
GlobalApiKey: globalApiKey,
|
| 278 |
WaDebug: waDebug,
|
|
|
|
| 18 |
|
| 19 |
type Config struct {
|
| 20 |
// Supabase (PostgREST API + native Postgres for whatsmeow store/wasmeow)
|
| 21 |
+
SupabaseURL string
|
| 22 |
+
SupabaseServiceKey string
|
| 23 |
+
SupabaseDBURL string
|
| 24 |
DatabaseSaveMessages bool
|
| 25 |
GlobalApiKey string
|
| 26 |
WaDebug string
|
|
|
|
| 270 |
}
|
| 271 |
|
| 272 |
config := &Config{
|
| 273 |
+
SupabaseURL: supabaseURL,
|
| 274 |
+
SupabaseServiceKey: supabaseServiceKey,
|
| 275 |
+
SupabaseDBURL: supabaseDBURL,
|
| 276 |
DatabaseSaveMessages: databaseSaveMessages == "true",
|
| 277 |
GlobalApiKey: globalApiKey,
|
| 278 |
WaDebug: waDebug,
|