We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89d28cd commit c5f7d8cCopy full SHA for c5f7d8c
1 file changed
templates/endpoint/basename.controller.js
@@ -41,9 +41,7 @@ function removeEntity(res) {
41
if(entity) {
42
<% if(filters.mongooseModels) { %>return entity.remove()<% }
43
if(filters.sequelizeModels) { %>return entity.destroy()<% } %>
44
- .then(() => {
45
- return res.status(204).end();
46
- });
+ .then(() => res.status(204).end());
47
}
48
};
49
0 commit comments