Skip to content

Commit

Permalink
chore: update environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
chidimo committed Mar 11, 2020
1 parent e2d0f69 commit b4e0bc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/models/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
import dotenv from 'dotenv';
import mongoose from 'mongoose';

import { mongooseConnectionString } from '../settings';
import { connectionString } from '../settings';

dotenv.config();

(async () => {
try {
await mongoose.connect(mongooseConnectionString, {
await mongoose.connect(connectionString, {
useNewUrlParser: true,
useUnifiedTopology: true,
});
Expand Down
2 changes: 0 additions & 2 deletions src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ import dotenv from 'dotenv';

dotenv.config();

export const testEnvironmentVariable = process.env.TEST_ENV_VARIABLE.trim();
export const connectionString = process.env.CONNECTION_STRING.trim();
export const mongooseConnectionString = process.env.MONGOOSE_CONNECTION_STRING.trim();

0 comments on commit b4e0bc2

Please sign in to comment.