File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ function listMyNotes (req, res) {
233233}
234234
235235const deleteNote = async ( req , res ) => {
236- if ( req . isAuthenticated ( ) ) {
236+ if ( req . isAuthenticated ( ) ) {
237237 const noteId = await Note . parseNoteIdAsync ( req . params . noteId )
238238 try {
239239 const destroyed = await Note . destroy ( {
@@ -260,21 +260,21 @@ const deleteNote = async (req, res) => {
260260}
261261
262262const updateNote = async ( req , res ) => {
263- if ( req . isAuthenticated ( ) ) {
263+ if ( req . isAuthenticated ( ) ) {
264264 const noteId = await Note . parseNoteIdAsync ( req . params . noteId )
265265 try {
266266 const note = await Note . findOne ( {
267267 where : {
268- id : noteId ,
268+ id : noteId
269269 }
270270 } )
271271 if ( ! note ) {
272272 logger . error ( 'Update note failed: Can\'t find the note.' )
273273 return errorNotFound ( req , res )
274274 }
275-
275+
276276 const updated = await note . update ( {
277- content : req . body . content ,
277+ content : req . body . content
278278 } )
279279 if ( ! updated ) {
280280 logger . error ( 'Update note failed: Write data error.' )
Original file line number Diff line number Diff line change @@ -516,7 +516,7 @@ export function finishView (view) {
516516 $value . unwrap ( )
517517 try {
518518 const data = transform ( content )
519- $elem . html ( ` <div class="markmap-container"><svg></svg></div>` )
519+ $elem . html ( ' <div class="markmap-container"><svg></svg></div>' )
520520 markmap ( $elem . find ( 'svg' ) [ 0 ] , data , {
521521 duration : 0
522522 } )
You can’t perform that action at this time.
0 commit comments