Skip to content

Commit

Permalink
Añadir principio mongo a la url
Browse files Browse the repository at this point in the history
  • Loading branch information
UO271728 committed May 2, 2022
1 parent 6e10cb3 commit b30c815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion restapi/modules/gestorDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const mongoose = require('mongoose')
require('dotenv').config()

const mongo_uri:string = process.env.MONGO_URI || 'localhost'
const mongo_uri:string = process.env.MONGO_URI || 'mongodb+srv://localhost'

export function connect(){
mongoose.connect(mongo_uri, {
Expand Down

0 comments on commit b30c815

Please sign in to comment.