server-ts: Convert routes/api/branches

This commit is contained in:
Elian Doran
2024-04-05 20:33:04 +03:00
parent 706b9d0f46
commit fd77c5e8c4
4 changed files with 32 additions and 30 deletions

View File

@@ -27,7 +27,8 @@ function moveBranchToNote(branchToMove: BBranch, targetParentNoteId: string) {
};
}
function moveBranchToBranch(branchToMove: BBranch, targetParentBranch: BBranch) {
function moveBranchToBranch(branchToMove: BBranch, targetParentBranch: BBranch, branchId: string) {
// TODO: Unused branch ID argument.
const res = moveBranchToNote(branchToMove, targetParentBranch.noteId);
if (!("success" in res) || !res.success) {