diff --git a/db/migrations/0169__convert_h1_to_h2.js b/db/migrations/0169__convert_h1_to_h2.js index 14696580e..f1c2cc4bd 100644 --- a/db/migrations/0169__convert_h1_to_h2.js +++ b/db/migrations/0169__convert_h1_to_h2.js @@ -3,13 +3,15 @@ const repository = require('../../src/services/repository'); module.exports = () => { for (const note of repository.getEntities("SELECT * FROM notes WHERE type = 'text' AND isProtected = 0")) { try { - let content = note.getContent(); + let origContent = note.getContent(); - content = content + const newContent = origContent .replace(/