badmfck-api-server 3.7.2 → 3.7.3
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.
@@ -95,7 +95,7 @@ async function Initializer(services) {
|
|
95
95
|
exports.Initializer = Initializer;
|
96
96
|
class APIService extends BaseService_1.BaseService {
|
97
97
|
static nextLogID = 0;
|
98
|
-
version = "3.7.
|
98
|
+
version = "3.7.3";
|
99
99
|
options;
|
100
100
|
monitor = null;
|
101
101
|
started = new Date();
|
@@ -585,8 +585,10 @@ class MysqlAdapter {
|
|
585
585
|
static prepareQueryFieldValue(field) {
|
586
586
|
let value = field.value;
|
587
587
|
let system = field.system;
|
588
|
-
if (value === null || value === undefined)
|
588
|
+
if (value === null || value === undefined) {
|
589
|
+
field.__parsedValue = "NULL";
|
589
590
|
return "NULL";
|
591
|
+
}
|
590
592
|
if (!system && typeof value === "object") {
|
591
593
|
try {
|
592
594
|
value = JSON.stringify(value);
|
@@ -602,6 +604,10 @@ class MysqlAdapter {
|
|
602
604
|
if (typeof value === "boolean")
|
603
605
|
value = value ? 1 : 0;
|
604
606
|
field.__parsedValue = value;
|
607
|
+
if (field.__parsedValue === null || field.__parsedValue === undefined) {
|
608
|
+
field.__parsedValue = "NULL";
|
609
|
+
value = field.__parsedValue;
|
610
|
+
}
|
605
611
|
return value;
|
606
612
|
}
|
607
613
|
prepareCountQuery(query) {
|