fixes to stable sorting

This commit is contained in:
zadam
2023-11-03 01:11:47 +01:00
parent 45ed436426
commit f37f47ce5b
9 changed files with 23 additions and 20 deletions

View File

@@ -163,7 +163,7 @@ function register(router) {
zipImportService.importZip(taskContext, req.body, note).then(importedNote => {
res.status(201).json({
note: mappers.mapNoteToPojo(importedNote),
branch: mappers.mapBranchToPojo(importedNote.getBranches()[0]),
branch: mappers.mapBranchToPojo(importedNote.getParentBranches()[0]),
});
}); // we need better error handling here, async errors won't be properly processed.
});