badmfck-api-server 1.1.9 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -103,11 +103,12 @@ class MysqlService extends BaseService_1.BaseService {
103
103
  return query;
104
104
  }
105
105
  static prepareQueryFieldValue(value, system) {
106
- if (value === null)
107
- return "NULL";
108
106
  if (!system && typeof value === "string") {
109
107
  value = value ? value.replaceAll('"', '\\"') : null;
110
- value = '"' + value + '"';
108
+ if (value !== null)
109
+ value = '"' + value + '"';
110
+ else
111
+ value = "NULL";
111
112
  }
112
113
  return value;
113
114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "1.1.9",
3
+ "version": "1.2.0",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",