rename core-module environment to twenty-config (#11445)

closes https://github.com/twentyhq/core-team-issues/issues/759
This commit is contained in:
nitin
2025-04-09 17:41:26 +05:30
committed by GitHub
parent fe6d0241a8
commit bd3ec6d5e3
193 changed files with 1454 additions and 1422 deletions

View File

@ -1,7 +1,7 @@
import { HttpService } from '@nestjs/axios';
import { Injectable, Logger } from '@nestjs/common';
import { EnvironmentService } from 'src/engine/core-modules/environment/environment.service';
import { TwentyConfigService } from 'src/engine/core-modules/twenty-config/twenty-config.service';
type CreateEventInput = {
action: string;
@ -13,7 +13,7 @@ export class TelemetryService {
private readonly logger = new Logger(TelemetryService.name);
constructor(
private readonly environmentService: EnvironmentService,
private readonly twentyConfigService: TwentyConfigService,
private readonly httpService: HttpService,
) {}
@ -22,7 +22,7 @@ export class TelemetryService {
userId: string | null | undefined,
workspaceId: string | null | undefined,
) {
if (!this.environmentService.get('TELEMETRY_ENABLED')) {
if (!this.twentyConfigService.get('TELEMETRY_ENABLED')) {
return { success: true };
}