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
|
@@ -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]
|
|
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]
|
|
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
|
}
|