feat: Use MongoDB to save the datalake

This commit is contained in:
Lucàs
2024-11-11 23:09:59 +01:00
parent cde872ca55
commit 6975765e18
36 changed files with 862 additions and 517 deletions
+2 -6
View File
@@ -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();
}