export subtrees in ZIP instead of TAR format because of more widespread support (especially unicode)

This commit is contained in:
zadam
2020-03-19 20:07:27 +01:00
parent ff426fc1fc
commit 45e2dc96fb
5 changed files with 175 additions and 30 deletions

View File

@@ -1,6 +1,6 @@
"use strict";
const tarExportService = require('../../services/export/tar');
const zipExportService = require('../../services/export/tar');
const singleExportService = require('../../services/export/single');
const opmlExportService = require('../../services/export/opml');
const repository = require("../../services/repository");
@@ -15,7 +15,7 @@ async function exportBranch(req, res) {
try {
if (type === 'subtree' && (format === 'html' || format === 'markdown')) {
await tarExportService.exportToTar(taskContext, branch, format, res);
await zipExportService.exportToZip(taskContext, branch, format, res);
}
else if (type === 'single') {
await singleExportService.exportSingleNote(taskContext, branch, format, res);