File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ function dtoInCache(dto) {
143
143
const verbs_with_dto = [ ' get' , ' post' , ' put' ]
144
144
endpoints .forEach (function (endpoint ) {
145
145
const dtos = endpoint .methods
146
+ .filter (method => method .query ) // filter out aggregated_queries for a while (see #17)
146
147
.filter (method => verbs_with_dto .includes (method .verb ))
147
148
.map (method => query2dto (sqlParser, method))
148
149
.filter (elem => elem) // filter out nulls
@@ -161,6 +162,10 @@ endpoints.forEach(function(endpoint) {
161
162
const path = convertPathPlaceholders (endpoint .path );
162
163
163
164
endpoint .methods .forEach (function (method ) {
165
+ if (! method .query ) {
166
+ // filter out aggregated_queries for a while (see #17)
167
+ return
168
+ }
164
169
const params = extractParamsFromQuery (method .query );
165
170
const hasGetOne = method .name === ' get' ;
166
171
const hasGetMany = method .name === ' get_list' ;
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ endpoints.forEach(function(endpoint) {
5
5
const path = endpoint .path ;
6
6
7
7
endpoint .methods .forEach (function (method ) {
8
+ if (! method .query ) {
9
+ // filter out aggregated_queries for a while (see #17)
10
+ return
11
+ }
8
12
const hasGetOne = method .name === ' get' ;
9
13
const hasGetMany = method .name === ' get_list' ;
10
14
const sql = formatQuery (method .query );
You can’t perform that action at this time.
0 commit comments