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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yaml-admin-api",
3
- "version": "0.0.79",
3
+ "version": "0.0.80",
4
4
  "license": "MIT",
5
5
  "description": "YAML Admin API package",
6
6
  "type": "commonjs",
@@ -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 = req.query[s.name];
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')