flexbiz-server 12.5.21 → 12.5.22

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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "flexbiz-server",
3
3
  "main": "./server/app.js",
4
4
  "description": "Flexible Server",
5
- "version": "12.5.21",
5
+ "version": "12.5.22",
6
6
  "author": {
7
7
  "name": "Van Truong Pham",
8
8
  "email": "invncur@gmail.com"
@@ -288,7 +288,7 @@ const rptExcelHandler = async (ctrl,req,callback)=> {
288
288
  console.error("Error export to excel", error)
289
289
  return callback({error:error.message || error.error ||error});
290
290
  }
291
- console.log("[rptExcelHandler] [excelReport] data isbuffer",Buffer.isBuffer(result?.data),Object.keys(result));
291
+ console.log("[rptExcelHandler] data from excelReport isbuffer",Buffer.isBuffer(result));
292
292
  callback(null,{type:"xlsx",data:result});
293
293
 
294
294
  },{timezone:configs.timezone||"Asia/Ho_Chi_Minh"});
@@ -73,8 +73,8 @@ class WorkerPool {
73
73
 
74
74
  this.queue_running = this.queue_running.filter(q=>q.id!==task.id);
75
75
 
76
- console.log("[WorkerStaticPool] Trả kết quả...",Object.keys(message));
77
- console.log("[WorkerStaticPool] data type is buffer",Buffer.isBuffer(message?.data));
76
+ console.log("[WorkerStaticPool] Các loại kết quả trả về...",Object.keys(message));
77
+ console.log("[WorkerStaticPool] data type is buffer",Buffer.isBuffer(message?.result?.data));
78
78
 
79
79
  task.callback(message,task.id);
80
80
  }