badmfck-api-server 1.3.4 → 1.3.5

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.
@@ -122,11 +122,13 @@ class MysqlService extends BaseService_1.BaseService {
122
122
  static prepareQueryFieldValue(value, system) {
123
123
  if (!system && typeof value === "string") {
124
124
  value = value ? value.replaceAll('"', '\\"') : null;
125
- if (value !== null && value !== undefined)
125
+ if (value !== null)
126
126
  value = '"' + value + '"';
127
127
  else
128
128
  value = "NULL";
129
129
  }
130
+ if (!value)
131
+ return "NULL";
130
132
  return value;
131
133
  }
132
134
  async execute(query) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",