yaml-admin-api 0.0.79 → 0.0.80
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/package.json
CHANGED
|
@@ -291,7 +291,12 @@ const generateChartApi = async (app, db, yml, api_prefix) => {
|
|
|
291
291
|
|
|
292
292
|
let filter = {};
|
|
293
293
|
chart.filter?.forEach(s => {
|
|
294
|
-
let value =
|
|
294
|
+
let value = s.value;
|
|
295
|
+
if(value?.startsWith('$')) {
|
|
296
|
+
let q_value = value.substring(1);
|
|
297
|
+
value = req.query[q_value]
|
|
298
|
+
}
|
|
299
|
+
|
|
295
300
|
if(value == 'null')
|
|
296
301
|
filter[s.name] = null;
|
|
297
302
|
else if(value == 'not null')
|