@fluxhub/fluxhub-lib 9.0.104 → 9.0.105

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.
@@ -684,9 +684,16 @@
684
684
  if (old_doc != null && new_doc != null)
685
685
  diff = recursiveDiff.getDiff(old_doc, new_doc, true);
686
686
  var p = new QParam();
687
- p.sql = "INSERT_LOG_N";
688
- p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
689
- p.values = [app, k, descri, operazione, link, diff];
687
+ if (diff != null || link != null) {
688
+ p.sql = "INSERT_LOG_N2";
689
+ p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
690
+ p.values = [app, k, descri, operazione, link, diff];
691
+ }
692
+ else {
693
+ p.sql = "INSERT_LOG_N";
694
+ p.types = ['string', 'string', 'string', 'string'];
695
+ p.values = [app, k, descri, operazione];
696
+ }
690
697
  dt.doQuery(p).subscribe();
691
698
  };
692
699
  UtilityService.prototype.sql_date_time = function (dt) {