mirror of
https://github.com/strapi/strapi.git
synced 2025-08-13 11:17:42 +00:00
Fix 204 bugs
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
This commit is contained in:
parent
9c12820744
commit
7ddfdabcb0
@ -69,7 +69,7 @@ module.exports = strapi =>
|
|||||||
// Set body.
|
// Set body.
|
||||||
const values = await next();
|
const values = await next();
|
||||||
|
|
||||||
if (!ctx.body) {
|
if (_.isNil(ctx.body) && !_.isNil(values)) {
|
||||||
ctx.body = values;
|
ctx.body = values;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user