From 3be7404c90905556ee5eb1db67079749db09752e Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Wed, 30 Mar 2022 15:07:12 +0000 Subject: [PATCH] Attempt to fix non-null assertions --- src/helpers/env.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/helpers/env.ts b/src/helpers/env.ts index 22b1b3d..c339592 100644 --- a/src/helpers/env.ts +++ b/src/helpers/env.ts @@ -1,6 +1,6 @@ import 'dotenv/config'; -export const clientId : string = process.env.CLIENT_ID!; -export const testingGuild : string = process.env.TESTING_GUILD!; -export const token : string = process.env.TOKEN!; -export const mongoUri : string = process.env.MONGO_URI!; \ No newline at end of file +export const clientId : string = process.env.CLIENT_ID || ''; +export const testingGuild : string = process.env.TESTING_GUILD || ''; +export const token : string = process.env.TOKEN || ''; +export const mongoUri : string = process.env.MONGO_URI || 'mongodb://mongo:27017/awesome'; \ No newline at end of file