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 +1 -1
- package/package.json +1 -1
- package/src/logs/logs.ts +1 -1
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.
|
|
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
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.
|
|
42
|
+
const url=req.originalUrl;
|
|
43
43
|
//@ts-ignore
|
|
44
44
|
const userId=req.user?.id;
|
|
45
45
|
let errorString=stringfyError(error);
|