1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Fix for the issues raised in the code review

This commit is contained in:
ehhc
2018-05-28 09:04:35 +02:00
committed by Sosuke Suzuki
parent ddd1522e19
commit ffae53326a

View File

@@ -86,7 +86,7 @@ function migrateAttachments (renderedHTML, storagePath, noteKey) {
createAttachmentDestinationFolder(storagePath, noteKey)
}
for (const attachment of attachments) {
let attachmentBaseName = path.basename(attachment)
const attachmentBaseName = path.basename(attachment)
const possibleLegacyPath = path.join(storagePath, 'images', attachmentBaseName)
if (sander.existsSync(possibleLegacyPath)) {
const destinationPath = path.join(storagePath, DESTINATION_FOLDER, attachmentBaseName)