Skip to content

Commit

Permalink
Merge pull request #145 from faraday-academy/cleanup/bump-dependencies
Browse files Browse the repository at this point in the history
Update all backend dependencies
  • Loading branch information
gwenf authored Jun 24, 2024
2 parents 33fed40 + 19cd8b2 commit 711c1e2
Show file tree
Hide file tree
Showing 3 changed files with 3,919 additions and 8,905 deletions.
10 changes: 2 additions & 8 deletions curriculum-back/db/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
import mongoose from 'mongoose'

if (process.env.NODE_ENV === 'production') {
mongoose.connect(`mongodb://mongo/curriculumapp`, {
useNewUrlParser: true,
useUnifiedTopology: true
})
mongoose.connect(`mongodb://mongo/curriculumapp`, {})
} else {
mongoose.connect('mongodb://localhost:27017/curriculumapp', {
useNewUrlParser: true,
useUnifiedTopology: true
})
mongoose.connect('mongodb://localhost:27017/curriculumapp', {})
}

import Curriculum from './Curriculum.js'
Expand Down
Loading

0 comments on commit 711c1e2

Please sign in to comment.