File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -92,18 +92,17 @@ module.exports = function (sequelize, DataTypes) {
92
92
return new Promise ( function ( resolve , reject ) {
93
93
// if no content specified then use default note
94
94
if ( ! note . content ) {
95
- var body = null
96
95
let filePath = config . defaultNotePath
97
96
98
97
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' )
100
99
if ( Note . checkFileExist ( notePathInDocPath ) ) {
101
100
filePath = notePathInDocPath
102
101
}
103
102
}
104
103
105
104
if ( Note . checkFileExist ( filePath ) ) {
106
- let noteInFS = readFileSystemNote ( filePath )
105
+ const noteInFS = readFileSystemNote ( filePath )
107
106
note . title = noteInFS . title
108
107
note . content = noteInFS . content
109
108
if ( filePath !== config . defaultNotePath ) {
You can’t perform that action at this time.
0 commit comments