Commit 5f95cdf9 by Nick N. Sukharev

Исправлено создание описания вызова внешней функции для отчёта для случая, когда…

… был зафиксирван только запрос
1 parent 6ec0ec8f
Showing with 1 additions and 1 deletions
...@@ -85,7 +85,7 @@ module.exports = exports = { ...@@ -85,7 +85,7 @@ module.exports = exports = {
for (const [id, event] of Object.entries(collection)) { for (const [id, event] of Object.entries(collection)) {
const entry = {}; const entry = {};
if (event.response === undefined) { if (event.response === undefined) {
entry.startTime = new Date(request.time) entry.startTime = new Date(event.request.time)
entry.endTime = new Date(); entry.endTime = new Date();
entry.duration = entry.endTime.getTime() - entry.startTime.getTime(); entry.duration = entry.endTime.getTime() - entry.startTime.getTime();
entry.method = event.request.method; entry.method = event.request.method;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!