fix: lint

Signed-off-by: BoHong Li <a60814billy@gmail.com>
This commit is contained in:
BoHong Li 2019-04-15 13:36:44 +08:00
parent 43c0bff8c4
commit 8c26107ab1
No known key found for this signature in database
GPG Key ID: 9696D5590D58290F
2 changed files with 3 additions and 4 deletions

View File

@ -110,7 +110,7 @@ function responseCodiMD (res, note) {
function updateHistory (userId, note, document, time) {
var noteId = note.alias ? note.alias : models.Note.encodeNoteId(note.id)
history.updateHistory(userId, noteId, document, time)
logger.info("history updated")
logger.info('history updated')
}
function newNote (req, res, next) {
@ -132,9 +132,8 @@ function newNote (req, res, next) {
alias: req.alias ? req.alias : null,
content: body
}).then(function (note) {
if (req.isAuthenticated()) {
updateHistory(owner, note, body);
updateHistory(owner, note, body)
}
return res.redirect(config.serverURL + '/' + models.Note.encodeNoteId(note.id))

View File

@ -1,6 +1,6 @@
'use strict'
require('babel-polyfill')
require('isomorphic-fetch');
require('isomorphic-fetch')
const Router = require('express').Router
const passport = require('passport')
const MattermostClient = require('mattermost-redux/client/client4').default