mirror of https://github.com/status-im/codimd.git
Fix linter
Signed-off-by: James Tsai <jamesscamel@gmail.com>
This commit is contained in:
parent
b597dc9811
commit
b3cf98b329
|
@ -233,7 +233,7 @@ function listMyNotes (req, res) {
|
|||
}
|
||||
|
||||
const deleteNote = async (req, res) => {
|
||||
if(req.isAuthenticated()) {
|
||||
if (req.isAuthenticated()) {
|
||||
const noteId = await Note.parseNoteIdAsync(req.params.noteId)
|
||||
try {
|
||||
const destroyed = await Note.destroy({
|
||||
|
@ -260,12 +260,12 @@ const deleteNote = async (req, res) => {
|
|||
}
|
||||
|
||||
const updateNote = async (req, res) => {
|
||||
if(req.isAuthenticated()) {
|
||||
if (req.isAuthenticated()) {
|
||||
const noteId = await Note.parseNoteIdAsync(req.params.noteId)
|
||||
try {
|
||||
const note = await Note.findOne({
|
||||
where: {
|
||||
id: noteId,
|
||||
id: noteId
|
||||
}
|
||||
})
|
||||
if (!note) {
|
||||
|
@ -274,7 +274,7 @@ const updateNote = async (req, res) => {
|
|||
}
|
||||
|
||||
const updated = await note.update({
|
||||
content: req.body.content,
|
||||
content: req.body.content
|
||||
})
|
||||
if (!updated) {
|
||||
logger.error('Update note failed: Write data error.')
|
||||
|
|
|
@ -516,7 +516,7 @@ export function finishView (view) {
|
|||
$value.unwrap()
|
||||
try {
|
||||
const data = transform(content)
|
||||
$elem.html(`<div class="markmap-container"><svg></svg></div>`)
|
||||
$elem.html('<div class="markmap-container"><svg></svg></div>')
|
||||
markmap($elem.find('svg')[0], data, {
|
||||
duration: 0
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue