Fix linter

Signed-off-by: James Tsai <jamesscamel@gmail.com>
This commit is contained in:
James Tsai 2020-07-21 09:16:32 +08:00
parent b597dc9811
commit b3cf98b329
2 changed files with 6 additions and 6 deletions

View File

@ -265,7 +265,7 @@ const updateNote = async (req, res) => {
try { try {
const note = await Note.findOne({ const note = await Note.findOne({
where: { where: {
id: noteId, id: noteId
} }
}) })
if (!note) { if (!note) {
@ -274,7 +274,7 @@ const updateNote = async (req, res) => {
} }
const updated = await note.update({ const updated = await note.update({
content: req.body.content, content: req.body.content
}) })
if (!updated) { if (!updated) {
logger.error('Update note failed: Write data error.') logger.error('Update note failed: Write data error.')

View File

@ -516,7 +516,7 @@ export function finishView (view) {
$value.unwrap() $value.unwrap()
try { try {
const data = transform(content) 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, { markmap($elem.find('svg')[0], data, {
duration: 0 duration: 0
}) })