elderwand 0.1.72 → 0.1.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -555,7 +555,7 @@ module.exports.inherit = function (child) {
|
|
|
555
555
|
child.coveredMethods.push("lookMultipleFiles");
|
|
556
556
|
child.lookMultipleFiles = function(req, res) {
|
|
557
557
|
if (req[child.singularName] && req[child.singularName].canSeeByUser(req.user)) {
|
|
558
|
-
const zipNames = req.params.zipName.split('
|
|
558
|
+
const zipNames = req.params.zipName.split('&').map(name => name.trim());
|
|
559
559
|
const id = req[child.singularName]._id.toString();
|
|
560
560
|
const uploadPath = path.resolve('uploads', child.singularName, id.toString());
|
|
561
561
|
const zipFileName = `${id}.zip`;
|
|
@@ -564,7 +564,6 @@ module.exports.inherit = function (child) {
|
|
|
564
564
|
const archive = archiver('zip');
|
|
565
565
|
|
|
566
566
|
output.on('close', function() {
|
|
567
|
-
console.log(`Zip dosyası oluşturuldu: ${zipFilePath} (${archive.pointer()} toplam bayt)`);
|
|
568
567
|
res.download(zipFilePath, function(err) {
|
|
569
568
|
if (err) {
|
|
570
569
|
console.error('İndirme işlemi başarısız:', err);
|