allow cloning into notes, not just branches, fixes #2484

This commit is contained in:
zadam
2021-12-27 23:39:46 +01:00
parent 3128a7d62f
commit d97e454463
9 changed files with 55 additions and 24 deletions

View File

@@ -61,7 +61,7 @@ async function start() {
const parentNoteId = getRandomNoteId();
const prefix = Math.random() > 0.8 ? "prefix" : null;
const result = await cloningService.cloneNoteToParent(noteIdToClone, parentNoteId, prefix);
const result = await cloningService.cloneNoteToBranch(noteIdToClone, parentNoteId, prefix);
console.log(`Cloning ${i}:`, result.success ? "succeeded" : "FAILED");
}