serverpreconfigured 2.2.1 → 2.2.2

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/dist/logs/logs.js CHANGED
@@ -46,7 +46,7 @@ function saveInternalErrorLog(req, error, options) {
46
46
  return __awaiter(this, void 0, void 0, function* () {
47
47
  try {
48
48
  const ip = req.ip;
49
- const url = req.url;
49
+ const url = req.originalUrl;
50
50
  //@ts-ignore
51
51
  const userId = (_a = req.user) === null || _a === void 0 ? void 0 : _a.id;
52
52
  let errorString = stringfyError(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "serverpreconfigured",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "\"Pre-configured server with authentication system and database integration\"",
5
5
  "main": "dist/server.js",
6
6
  "keywords": [
package/src/logs/logs.ts CHANGED
@@ -39,7 +39,7 @@ function stringfyError(err:any):string{
39
39
  export async function saveInternalErrorLog(req:Request,error:any,options?:{penTestSuspcion?:boolean,severity?:LogSeverity}){
40
40
  try{
41
41
  const ip=req.ip;
42
- const url=req.url;
42
+ const url=req.originalUrl;
43
43
  //@ts-ignore
44
44
  const userId=req.user?.id;
45
45
  let errorString=stringfyError(error);