DB migration should convert only "perfect candidates" to attachments

This commit is contained in:
zadam
2023-07-14 18:24:15 +02:00
parent 4d00404f55
commit 2dac6ab281
3 changed files with 11 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ module.exports = () => {
for (const note of Object.values(becca.notes)) {
try {
const attachment = note.convertToParentAttachment({force: false});
const attachment = note.convertToParentAttachment({autoConversion: true});
if (attachment) {
log.info(`Auto-converted note '${note.noteId}' into attachment '${attachment.attachmentId}'.`);