Update InfisicalClient initialization

This commit is contained in:
Tuan Dang
2023-04-23 13:38:36 +03:00
parent e1bf31b371
commit 34c79b08bc
2 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,8 @@
import infisical from 'infisical-node';
import InfisicalClient from 'infisical-node';
const infisical = new InfisicalClient({
token: process.env.INFISICAL_TOKEN!
});
export const getPort = async () => await infisical.get('PORT')! || 4000;
export const getInviteOnlySignup = async () => await infisical.get('INVITE_ONLY_SIGNUP')! == undefined ? false : await infisical.get('INVITE_ONLY_SIGNUP');

View File

@@ -79,10 +79,6 @@ import {
} from './config';
const main = async () => {
infisical.connect({
token: process.env.INFISICAL_TOKEN!
});
TelemetryService.logTelemetryMessage();
setTransporter(await initSmtp());