flexbiz-server 12.4.7 → 12.4.8

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.4.7",
5
+ "version": "12.4.8",
6
6
  "author": {
7
7
  "name": "Van Truong Pham",
8
8
  "email": "invncur@gmail.com"
@@ -269,7 +269,7 @@ post.prototype.run = async function(callback=()=>{}) {
269
269
  if(details.length==0) return callback(null,[]);
270
270
  model_book.create(details,async (e,rs)=>{
271
271
  if(e){
272
- console.error("[postBook] Đã có lỗi khi postdata",e.error||e.message||e);
272
+ console.error("[postBook] Đã có lỗi khi postdata",e.error||e.message||e,master.ma_ct,master.so_ct);
273
273
  let msg_error = e.message || e.error || e.toString();
274
274
  if(msg_error.indexOf("E11000 duplicate")>=0 && msg_error.indexOf("id_ct_1_line_1")>=0){
275
275
  rs = await model_book.find({id_ct: master._id.toString()});
@@ -130,4 +130,5 @@ process.on('uncaughtException', (err) => {
130
130
 
131
131
  process.on('unhandledRejection', (reason) => {
132
132
  console.error('❌ [reportworker] Unhandled promise rejection:', reason.message);
133
+ process.exit(1)
133
134
  });