badmfck-api-server 1.3.2 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ export interface IEndpointHandler {
|
|
10
10
|
handler: (req: HTTPRequestVO) => Promise<TransferPacketVO<any>>;
|
11
11
|
ignoreInterceptor?: boolean;
|
12
12
|
}
|
13
|
-
export declare class BaseEndpoint
|
13
|
+
export declare class BaseEndpoint implements IBaseEndpoint {
|
14
14
|
endpoints?: IEndpointHandler[];
|
15
15
|
ignoreHttpLogging: boolean;
|
16
16
|
private static entrypoint;
|
@@ -20,5 +20,5 @@ export declare class BaseEndpoint<T> implements IBaseEndpoint {
|
|
20
20
|
constructor(endpoint: string);
|
21
21
|
registerEndpoints(endpoints: IEndpointHandler[]): void;
|
22
22
|
init(): Promise<void>;
|
23
|
-
execute(req: HTTPRequestVO): Promise<TransferPacketVO<
|
23
|
+
execute(req: HTTPRequestVO): Promise<TransferPacketVO<any>>;
|
24
24
|
}
|
@@ -122,7 +122,7 @@ 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)
|
125
|
+
if (value !== null && value !== undefined)
|
126
126
|
value = '"' + value + '"';
|
127
127
|
else
|
128
128
|
value = "NULL";
|