express-ext 0.1.35 → 0.1.36
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.
- package/package.json +1 -1
- package/src/LogController.ts +1 -1
package/package.json
CHANGED
package/src/LogController.ts
CHANGED
|
@@ -69,7 +69,7 @@ export class LogController {
|
|
|
69
69
|
}
|
|
70
70
|
config(req: Request, res: Response) {
|
|
71
71
|
const obj: LogConfig = req.body;
|
|
72
|
-
if (!obj || obj === '') {
|
|
72
|
+
if (!obj || (obj as any) === '') {
|
|
73
73
|
return res.status(400).end('The request body cannot be empty');
|
|
74
74
|
}
|
|
75
75
|
if (!this.logger) {
|