@fluxhub/fluxhub-lib 1.0.516 → 1.0.517

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.
@@ -1965,6 +1965,7 @@
1965
1965
  console.log('token non online');
1966
1966
  return;
1967
1967
  }
1968
+ console.log('queryp before ', queryp);
1968
1969
  this.headers = new http.HttpHeaders({
1969
1970
  'Content-Type': 'application/json',
1970
1971
  'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
@@ -1985,12 +1986,14 @@
1985
1986
  else
1986
1987
  queryp.values[i] = '0';
1987
1988
  if (queryp.types[i] == 'int') {
1988
- if (queryp.values[i] == '')
1989
+ if (queryp.values[i] + '' == '')
1989
1990
  queryp.values[i] = 'dbnull';
1990
- else if (isNaN(queryp.values[i]))
1991
- queryp.values[i] = '0';
1992
- else
1993
- queryp.values[i] = '' + queryp.values[i];
1991
+ else {
1992
+ if (isNaN(queryp.values[i]))
1993
+ queryp.values[i] = '0';
1994
+ else
1995
+ queryp.values[i] = '' + queryp.values[i];
1996
+ }
1994
1997
  }
1995
1998
  if (queryp.types[i] == 'string')
1996
1999
  queryp.values[i] = '' + queryp.values[i];
@@ -1999,17 +2002,20 @@
1999
2002
  if (queryp.types[i] == 'datetime')
2000
2003
  queryp.values[i] = this.uti_s.sql_date_time(queryp.values[i]);
2001
2004
  if (queryp.types[i] == 'decimal') {
2002
- if (queryp.values[i] == '')
2005
+ if (queryp.values[i] + '' == '')
2003
2006
  queryp.values[i] = 'dbnull';
2004
- else if (isNaN(queryp.values[i]))
2005
- queryp.values[i] = '0';
2006
- else
2007
- queryp.values[i] = '' + queryp.values[i];
2007
+ else {
2008
+ if (isNaN(queryp.values[i]))
2009
+ queryp.values[i] = '0';
2010
+ else
2011
+ queryp.values[i] = '' + queryp.values[i];
2012
+ }
2008
2013
  }
2009
2014
  if (queryp.types[i] == 'string' && queryp.values[i] == null)
2010
2015
  queryp.values[i] = 'dbnull';
2011
2016
  }
2012
2017
  }
2018
+ console.log('queryp after ', queryp);
2013
2019
  /** @type {?} */
2014
2020
  var post_v = JSON.stringify(queryp);
2015
2021
  return this.http.post(this.url, post_v, { headers: this.headers })