Skip to content

Commit

Permalink
fix(python): fix absent model when only PUT endpoint is present
Browse files Browse the repository at this point in the history
Correction for 6547d71 commit.

Relate to #16
  • Loading branch information
php-coder committed Apr 9, 2024
1 parent c3296ca commit 76fffb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/routes.py.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function dtoInCache(dto) {
}
// Generate models
const verbs_with_dto = [ 'post' ]
const verbs_with_dto = [ 'post', 'put' ]
endpoints.forEach(function(endpoint) {
const dtos = endpoint.methods
.filter(method => verbs_with_dto.includes(method.verb))
Expand Down

0 comments on commit 76fffb2

Please sign in to comment.