Skip to content

Commit

Permalink
Cambio de uri
Browse files Browse the repository at this point in the history
  • Loading branch information
UO271728 committed May 2, 2022
1 parent 2b438a1 commit b0a5205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions restapi/modules/gestorDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
const mongoose = require('mongoose')
require('dotenv').config()

const uri: string = process.env.MONGO_URI!;


export function connect(){
mongoose.connect(uri, {
mongoose.connect(process.env.MONGO_URI!, {
useNewUrlParser: true,
useUnifiedTopology: true
})
Expand Down

0 comments on commit b0a5205

Please sign in to comment.