mirror of
https://github.com/status-im/codimd.git
synced 2025-01-11 16:04:37 +00:00
fix: lint
Signed-off-by: BoHong Li <a60814billy@gmail.com>
This commit is contained in:
parent
43c0bff8c4
commit
8c26107ab1
@ -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))
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user