Fix mongoUrl typo

This commit is contained in:
Matúš Námešný 2020-06-14 22:16:21 +02:00 committed by GitHub
parent e71538996c
commit a7cb95ee5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ const serverRenderer = new ServerRenderer(head, config, storage)
app.get('*', serverRenderer.render.bind(serverRenderer))
if (config.storage === 'mongo') {
mongoose.connect(config.mongourl, { useNewUrlParser: true })
mongoose.connect(config.mongoUrl, { useNewUrlParser: true })
const db = mongoose.connection
db.on('error', (error) => console.error(`[Server] Unable to connect to database\n${error}`))
db.once('open', () => {