File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,18 +92,17 @@ module.exports = function (sequelize, DataTypes) {
9292 return new Promise ( function ( resolve , reject ) {
9393 // if no content specified then use default note
9494 if ( ! note . content ) {
95- var body = null
9695 let filePath = config . defaultNotePath
9796
9897 if ( note . alias ) {
99- const notePathInDocPath = path . join ( config . docsPath , path . basename ( node . alias ) + '.md' )
98+ const notePathInDocPath = path . join ( config . docsPath , path . basename ( note . alias ) + '.md' )
10099 if ( Note . checkFileExist ( notePathInDocPath ) ) {
101100 filePath = notePathInDocPath
102101 }
103102 }
104103
105104 if ( Note . checkFileExist ( filePath ) ) {
106- let noteInFS = readFileSystemNote ( filePath )
105+ const noteInFS = readFileSystemNote ( filePath )
107106 note . title = noteInFS . title
108107 note . content = noteInFS . content
109108 if ( filePath !== config . defaultNotePath ) {
You can’t perform that action at this time.
0 commit comments