mirror of
https://github.com/kmitresse/Compo-Service-Log-Project.git
synced 2026-05-16 17:11:48 +00:00
feat: Use MongoDB to save the datalake
This commit is contained in:
@@ -4,14 +4,10 @@ export default function (req: Request, res: Response, next: NextFunction) {
|
||||
if (req.is("application/xml")) {
|
||||
let data = "";
|
||||
req.setEncoding("utf8");
|
||||
req.on("data", (chunk: any) => {
|
||||
data += chunk;
|
||||
});
|
||||
req.on("data", (chunk: any) => (data += chunk));
|
||||
req.on("end", () => {
|
||||
req.body = data;
|
||||
next();
|
||||
});
|
||||
} else {
|
||||
next();
|
||||
}
|
||||
} else next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user