flexbiz-server 12.5.16 → 12.5.18
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] [excelReport] data
|
|
291
|
+
console.log("[rptExcelHandler] [excelReport] data isbuffer",Buffer.isBuffer(result),Object.keys(result));
|
|
292
292
|
callback(null,{type:"xlsx",data:result});
|
|
293
293
|
|
|
294
294
|
},{timezone:configs.timezone||"Asia/Ho_Chi_Minh"});
|
|
@@ -38,7 +38,7 @@ const handleReport =async (msg)=>{
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
console.log("[reportWorker] result type",typeof(result));
|
|
41
|
-
console.log("[reportWorker] data type",
|
|
41
|
+
console.log("[reportWorker] data type is buffer",Buffer.isBuffer(result?.data));
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
parentPort.postMessage({error:error?.message||error?.error||error,result,id_task:msg.id_task});
|