elderwand 0.1.72 → 0.1.74

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(',').map(name => name.trim());
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elderwand",
3
- "version": "0.1.72",
3
+ "version": "0.1.74",
4
4
  "description": "Mamtas Technology Internal Framework",
5
5
  "main": "./node_modules/.bin/nodemon index.js",
6
6
  "scripts": {
@@ -287,6 +287,8 @@ exports.checkWorkQueue = function(worker, q){
287
287
  worker.job = job;
288
288
  worker.postMessage(job.data);
289
289
  result = true;
290
+ }else{
291
+ return false;
290
292
  }
291
293
  }else if(worker != undefined && workers.length <= MAX_WORKING_THREADS){
292
294
  var job = exports.getJobForRun();
@@ -302,6 +304,8 @@ exports.checkWorkQueue = function(worker, q){
302
304
  worker.job = job;
303
305
  worker.postMessage(job.data);
304
306
  result = true;
307
+ }else{
308
+ return false;
305
309
  }
306
310
  }
307
311
  }