Fix mongoUrl typo
This commit is contained in:
parent
e71538996c
commit
a7cb95ee5f
|
@ -68,7 +68,7 @@ const serverRenderer = new ServerRenderer(head, config, storage)
|
||||||
app.get('*', serverRenderer.render.bind(serverRenderer))
|
app.get('*', serverRenderer.render.bind(serverRenderer))
|
||||||
|
|
||||||
if (config.storage === 'mongo') {
|
if (config.storage === 'mongo') {
|
||||||
mongoose.connect(config.mongourl, { useNewUrlParser: true })
|
mongoose.connect(config.mongoUrl, { useNewUrlParser: true })
|
||||||
const db = mongoose.connection
|
const db = mongoose.connection
|
||||||
db.on('error', (error) => console.error(`[Server] Unable to connect to database\n${error}`))
|
db.on('error', (error) => console.error(`[Server] Unable to connect to database\n${error}`))
|
||||||
db.once('open', () => {
|
db.once('open', () => {
|
||||||
|
|
Loading…
Reference in New Issue