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
package/server/libs/post-book.js
CHANGED
|
@@ -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()});
|