From 8440010b412209def5e9d42900e0c62e80cf58b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lud=C4=9Bk=20Nov=C3=BD?= <13610612+ludeknovy@users.noreply.github.com> Date: Fri, 4 Nov 2022 15:22:33 +0100 Subject: [PATCH] latest items data returned update --- src/server/queries/projects.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/queries/projects.ts b/src/server/queries/projects.ts index 86c8032f..e62efcda 100644 --- a/src/server/queries/projects.ts +++ b/src/server/queries/projects.ts @@ -36,7 +36,7 @@ export const findProjects = () => { export const latestItems = () => { return { // eslint-disable-next-line max-len - text: `SELECT i.id, s.name, environment, project_name as "projectName", stat.overview->'startDate' as "startTime", status FROM jtl.items as i + text: `SELECT i.id, s.name, environment, project_name as "projectName", stat.overview, status, s.zero_error_tolerance_enabled as "zeroErrorToleranceEnabled", i.threshold_result as "thresholdPassed" FROM jtl.items as i LEFT JOIN jtl.scenario as s ON s.id = i.scenario_id LEFT JOIN jtl.projects as p ON p.id = s.project_id LEFT JOIN jtl.item_stat as stat ON stat.item_id = i.id