mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix csv values from env variables in telemetry (#12370)
This commit is contained in:
@@ -6,6 +6,7 @@ import os from 'os';
|
||||
import { version } from '../../package.json';
|
||||
import env from '../env';
|
||||
import logger from '../logger';
|
||||
import { toArray } from '@directus/shared/utils';
|
||||
|
||||
export async function track(event: string): Promise<void> {
|
||||
if (env.TELEMETRY !== false) {
|
||||
@@ -55,7 +56,7 @@ async function getEnvInfo(event: string) {
|
||||
transport: env.EMAIL_TRANSPORT,
|
||||
},
|
||||
auth: {
|
||||
providers: env.AUTH_PROVIDERS.split(',')
|
||||
providers: toArray(env.AUTH_PROVIDERS)
|
||||
.map((v: string) => v.trim())
|
||||
.filter((v: string) => v),
|
||||
},
|
||||
@@ -65,7 +66,7 @@ async function getEnvInfo(event: string) {
|
||||
|
||||
function getStorageDrivers() {
|
||||
const drivers: string[] = [];
|
||||
const locations = env.STORAGE_LOCATIONS.split(',')
|
||||
const locations = toArray(env.STORAGE_LOCATIONS)
|
||||
.map((v: string) => v.trim())
|
||||
.filter((v: string) => v);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user