We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 890073b commit f3235fbCopy full SHA for f3235fb
src/templates/routes.go.ejs
@@ -85,6 +85,7 @@ function addTypes(props) {
85
}
86
87
function query2dto(parser, query) {
88
+ query = removePlaceholders(query);
89
const queryAst = parser.astify(query);
90
const props = extractProperties(queryAst).map(snake2camelCase);
91
if (props.length === 0) {
@@ -154,7 +155,7 @@ endpoints.forEach(function(endpoint) {
154
155
const dtos = endpoint.methods
156
.filter(method => verbs_with_dto.includes(method.verb))
157
.map(method => method.query)
- .map(query => query2dto(sqlParser, removePlaceholders(query)))
158
+ .map(query => query2dto(sqlParser, query))
159
.filter(elem => elem) // filter out nulls
160
.filter(dto => !dtoInCache(dto))
161
.map(dto => dto2struct(cacheDto(dto)))
0 commit comments