@fluxhub/fluxhub-lib 1.0.516 → 1.0.518

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.
@@ -1943,6 +1943,7 @@ var QueryService = /** @class */ (function () {
1943
1943
  console.log('token non online');
1944
1944
  return;
1945
1945
  }
1946
+ console.log('queryp before ', queryp);
1946
1947
  this.headers = new HttpHeaders({
1947
1948
  'Content-Type': 'application/json',
1948
1949
  'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
@@ -1963,12 +1964,14 @@ var QueryService = /** @class */ (function () {
1963
1964
  else
1964
1965
  queryp.values[i] = '0';
1965
1966
  if (queryp.types[i] == 'int') {
1966
- if (queryp.values[i] == '')
1967
+ if (queryp.values[i] + '' == '')
1967
1968
  queryp.values[i] = 'dbnull';
1968
- else if (isNaN(queryp.values[i]))
1969
- queryp.values[i] = '0';
1970
- else
1971
- queryp.values[i] = '' + queryp.values[i];
1969
+ else {
1970
+ if (isNaN(queryp.values[i]))
1971
+ queryp.values[i] = '0';
1972
+ else
1973
+ queryp.values[i] = '' + queryp.values[i];
1974
+ }
1972
1975
  }
1973
1976
  if (queryp.types[i] == 'string')
1974
1977
  queryp.values[i] = '' + queryp.values[i];
@@ -1977,17 +1980,20 @@ var QueryService = /** @class */ (function () {
1977
1980
  if (queryp.types[i] == 'datetime')
1978
1981
  queryp.values[i] = this.uti_s.sql_date_time(queryp.values[i]);
1979
1982
  if (queryp.types[i] == 'decimal') {
1980
- if (queryp.values[i] == '')
1983
+ if (queryp.values[i] + '' == '')
1981
1984
  queryp.values[i] = 'dbnull';
1982
- else if (isNaN(queryp.values[i]))
1983
- queryp.values[i] = '0';
1984
- else
1985
- queryp.values[i] = '' + queryp.values[i];
1985
+ else {
1986
+ if (isNaN(queryp.values[i]))
1987
+ queryp.values[i] = '0';
1988
+ else
1989
+ queryp.values[i] = '' + queryp.values[i];
1990
+ }
1986
1991
  }
1987
1992
  if (queryp.types[i] == 'string' && queryp.values[i] == null)
1988
1993
  queryp.values[i] = 'dbnull';
1989
1994
  }
1990
1995
  }
1996
+ console.log('queryp after ', queryp);
1991
1997
  /** @type {?} */
1992
1998
  var post_v = JSON.stringify(queryp);
1993
1999
  return this.http.post(this.url, post_v, { headers: this.headers })