Skip to content

Commit

Permalink
chore: rename TELEMETRY_ENABLED to SUPABASE_TELEMETRY_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
pratapalakshmi committed Nov 21, 2024
1 parent 590ce31 commit 7dfa86d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deploy/.env
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ BACKOFFICE_PORT=5137
HEADLESS_SVC_PORT=5173
HASHING_KEY_SECRET_BASE64=JDJiJDEwJFRYNjhmQi5JMlRCWHN0aGowakFHSi4=
SECRETS_MANAGER_PROVIDER=in-memory
TELEMETRY_ENABLED=true
SUPABASE_TELEMETRY_ENABLED=true
TELEMETRY_SUPABASE_URL=""
TELEMETRY_SUPABASE_API_KEY=""
2 changes: 1 addition & 1 deletion services/workflows-service/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ WEB_UI_SDK_URL=http://localhost:5202
NOTION_API_KEY=secret
HASHING_KEY_SECRET_BASE64=JDJiJDEwJFRYNjhmQi5JMlRCWHN0aGowakFHSi4=
SECRETS_MANAGER_PROVIDER=in-memory
TELEMETRY_ENABLED=true
SUPABASE_TELEMETRY_ENABLED=true
TELEMETRY_SUPABASE_URL=""
TELEMETRY_SUPABASE_API_KEY=""
2 changes: 1 addition & 1 deletion services/workflows-service/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const serverEnvSchema = {
IN_MEMORIES_SECRET_ACQUIRER_ID: z.string().optional(),
IN_MEMORIES_SECRET_PRIVATE_KEY: z.string().optional(),
IN_MEMORIES_SECRET_CONSUMER_KEY: z.string().optional(),
TELEMETRY_ENABLED: z
SUPABASE_TELEMETRY_ENABLED: z
.enum(['true', 'false'])
.default('true')
.transform(value => value === 'true')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class SupabaseService implements ISupabaseService {
private readonly logger = new Logger(SupabaseService.name);

constructor(private readonly configService: ConfigService) {
const telemetryEnabled = this.configService.get('TELEMETRY_ENABLED');
const telemetryEnabled = this.configService.get('SUPABASE_TELEMETRY_ENABLED');
const supabaseUrl = this.configService.get<string>('TELEMETRY_SUPABASE_URL');
const supabaseApiKey = this.configService.get<string>('TELEMETRY_SUPABASE_API_KEY');
if (telemetryEnabled) {
Expand Down

0 comments on commit 7dfa86d

Please sign in to comment.