This commit is contained in:
@@ -52,7 +52,7 @@ namespace AyaNova.KPI
|
||||
|
||||
|
||||
JArray jData = new JArray();
|
||||
string sMeta = string.Empty;
|
||||
string sMeta = null;
|
||||
|
||||
#if (DEBUG && AYSHOWKPIQUERYINFO)
|
||||
System.Diagnostics.Stopwatch stopWatch = new System.Diagnostics.Stopwatch();
|
||||
@@ -133,11 +133,17 @@ namespace AyaNova.KPI
|
||||
throw new System.Exception("KPIFetcher:GetResponseAsync - unexpected failure see log");
|
||||
}
|
||||
|
||||
return JObject.FromObject(new
|
||||
{
|
||||
meta = JObject.Parse(sMeta),
|
||||
data = jData
|
||||
});
|
||||
if (!string.IsNullOrWhiteSpace(sMeta))
|
||||
return JObject.FromObject(new
|
||||
{
|
||||
meta = JObject.Parse(sMeta),
|
||||
data = jData
|
||||
});
|
||||
else
|
||||
return JObject.FromObject(new
|
||||
{
|
||||
data = jData
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -48,9 +48,10 @@ namespace AyaNova.KPI
|
||||
GROUP BY x
|
||||
ORDER BY x ASC
|
||||
) t";
|
||||
_metaQuery = @"SELECT row_to_json(t) as res from (
|
||||
select name from auser where id = 10
|
||||
) t";
|
||||
_metaQuery = string.Empty;
|
||||
// @"SELECT row_to_json(t) as res from (
|
||||
// select name from auser where id = 10
|
||||
// ) t";
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user