From 6babba83e183220ec0a6a540460ec55357767564 Mon Sep 17 00:00:00 2001 From: rrozek Date: Wed, 20 Mar 2024 15:00:04 +0100 Subject: [PATCH] add missing basicQuery properties --- .../dashboard/dashboardElement/dashboardElement.interface.ts | 3 +++ .../dashboard/dashboardElement/dashboardElement.model.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/components/dashboard/dashboardElement/dashboardElement.interface.ts b/src/components/dashboard/dashboardElement/dashboardElement.interface.ts index 2054b30..e5c380c 100644 --- a/src/components/dashboard/dashboardElement/dashboardElement.interface.ts +++ b/src/components/dashboard/dashboardElement/dashboardElement.interface.ts @@ -36,6 +36,9 @@ export interface IDashboardElementBasicQueryMeasure { export interface IDashboardElementBasicQuery extends IDashboardElementVis { type: 'basicQuery'; + dbname: string; + schema: string; + table: string; dimension: string; differential?: string; measures: IDashboardElementBasicQueryMeasure[]; diff --git a/src/components/dashboard/dashboardElement/dashboardElement.model.ts b/src/components/dashboard/dashboardElement/dashboardElement.model.ts index dd588d0..79798ec 100644 --- a/src/components/dashboard/dashboardElement/dashboardElement.model.ts +++ b/src/components/dashboard/dashboardElement/dashboardElement.model.ts @@ -28,6 +28,9 @@ const dashboardElementButtonSchema = const dashboardElementBasicQuerySchema = new mongoose.Schema({ + dbname: { type: String }, + schema: { type: String }, + table: { type: String }, dimension: { type: String }, differential: { type: String }, measures: [