We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d15337 commit ebba278Copy full SHA for ebba278
src/templates/routes.go.ejs
@@ -195,8 +195,8 @@ endpoints.forEach(function(endpoint) {
195
// LATER: do we really need signature and cache?
196
const dataType = obtainDtoName(dto)
197
const resultVariableDeclaration = hasGetMany
198
- ? `result := []${dtoName}\{\}`
199
- : `var result ${dtoName}`
+ ? `result := []${dataType}\{\}`
+ : `var result ${dataType}`
200
201
const queryFunction = hasGetOne ? 'Get' : 'Select'
202
// LATER: handle only particular method (get/post/put)
0 commit comments