Browse Source

Attempt to fix non-null assertions

pull/41/head
Abheek Dhawan 3 years ago
parent
commit
3be7404c90
Signed by: abheekd GPG Key ID: 7BE81B8C14475B67
  1. 8
      src/helpers/env.ts

8
src/helpers/env.ts

@ -1,6 +1,6 @@
import 'dotenv/config'; import 'dotenv/config';
export const clientId : string = process.env.CLIENT_ID!; export const clientId : string = process.env.CLIENT_ID || '';
export const testingGuild : string = process.env.TESTING_GUILD!; export const testingGuild : string = process.env.TESTING_GUILD || '';
export const token : string = process.env.TOKEN!; export const token : string = process.env.TOKEN || '';
export const mongoUri : string = process.env.MONGO_URI!; export const mongoUri : string = process.env.MONGO_URI || 'mongodb://mongo:27017/awesome';
Loading…
Cancel
Save