mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Fix for the issues raised in the code review
This commit is contained in:
@@ -86,7 +86,7 @@ function migrateAttachments (renderedHTML, storagePath, noteKey) {
|
|||||||
createAttachmentDestinationFolder(storagePath, noteKey)
|
createAttachmentDestinationFolder(storagePath, noteKey)
|
||||||
}
|
}
|
||||||
for (const attachment of attachments) {
|
for (const attachment of attachments) {
|
||||||
let attachmentBaseName = path.basename(attachment)
|
const attachmentBaseName = path.basename(attachment)
|
||||||
const possibleLegacyPath = path.join(storagePath, 'images', attachmentBaseName)
|
const possibleLegacyPath = path.join(storagePath, 'images', attachmentBaseName)
|
||||||
if (sander.existsSync(possibleLegacyPath)) {
|
if (sander.existsSync(possibleLegacyPath)) {
|
||||||
const destinationPath = path.join(storagePath, DESTINATION_FOLDER, attachmentBaseName)
|
const destinationPath = path.join(storagePath, DESTINATION_FOLDER, attachmentBaseName)
|
||||||
|
|||||||
Reference in New Issue
Block a user