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 aaea9e8 commit c87de77Copy full SHA for c87de77
src/plugins/factory/Lifecycle.js
@@ -42,9 +42,9 @@ module.exports = class Lifecycle {
42
app.use(async (ctx, next) => {
43
await next();
44
if (ctx.status === config.STATUS_CODES.StatusNotFound) {
45
- ctx.result(config.STATUS_CODES.StatusNotFound, 'Not Found API');
46
- } else if (!ctx.body) {
47
- ctx.result(config.STATUS_CODES.StatusNotFound, 'Not Found');
+ if (!ctx.body) {
+ ctx.result(config.STATUS_CODES.StatusNotFound, 'Not Found API');
+ }
48
}
49
});
50
0 commit comments