We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71f61b7 commit 18f7eb2Copy full SHA for 18f7eb2
lib/models/note.js
@@ -223,7 +223,9 @@ module.exports = function (sequelize, DataTypes) {
223
body = fs.readFileSync(filePath, 'utf8');
224
note.title = LZString.compressToBase64(Note.parseNoteTitle(body));
225
note.content = LZString.compressToBase64(body);
226
- note.createdAt = fsCreatedTime;
+ if (filePath !== config.defaultnotepath) {
227
+ note.createdAt = fsCreatedTime;
228
+ }
229
}
230
231
// if no permission specified and have owner then give editable permission, else default permission is freely
0 commit comments