log connection string

Signed-off-by: Avior <github@avior.me>
This commit is contained in:
Florian Bouillon 2023-06-22 01:14:53 +02:00
parent ae1b7f9ec4
commit 4cd2a365ae

View File

@ -10,6 +10,7 @@ export default class Client {
throw new Error('Can\'t connect to the database, missing the connection string')
}
if (!this.client) {
console.log(this.connectionString)
mongoose.connect(this.connectionString)
this.client = true
}