From b30c815fae0b3b096fa158ea5926d10adc675616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mu=C3=B1iz?= Date: Mon, 2 May 2022 18:01:22 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1adir=20principio=20mongo=20a=20la=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- restapi/modules/gestorDB.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restapi/modules/gestorDB.ts b/restapi/modules/gestorDB.ts index db0173b..b743456 100644 --- a/restapi/modules/gestorDB.ts +++ b/restapi/modules/gestorDB.ts @@ -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, {