diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/models/index.js | 2 | ||||
-rwxr-xr-x | lib/response.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/models/index.js b/lib/models/index.js index 0679a7fc..e3aa8bf3 100644 --- a/lib/models/index.js +++ b/lib/models/index.js @@ -10,7 +10,7 @@ var config = require('../config') var logger = require('../logger') var dbconfig = cloneDeep(config.db) -dbconfig.logger = config.debug ? logger.info : false +dbconfig.logging = config.debug ? logger.info : false var sequelize = null diff --git a/lib/response.js b/lib/response.js index cda484e7..a22d1e70 100755 --- a/lib/response.js +++ b/lib/response.js @@ -575,7 +575,7 @@ function showPublishSlide (req, res, next) { updatetime: updatetime, url: origin, body: markdown, - theme: utils.isRevealTheme(meta.slideOptions.theme), + theme: meta.slideOptions && utils.isRevealTheme(meta.slideOptions.theme), meta: JSON.stringify(extracted.meta), useCDN: config.usecdn, owner: note.owner ? note.owner.id : null, |