mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
Clone response too to avoid inconsistencies in muti query responses
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
This commit is contained in:
parent
c4898aa803
commit
6c738dd7c9
@ -185,6 +185,7 @@ module.exports = {
|
|||||||
request: Object.assign(_.clone(context.request), {
|
request: Object.assign(_.clone(context.request), {
|
||||||
graphql: null,
|
graphql: null,
|
||||||
}),
|
}),
|
||||||
|
response: _.clone(context.response),
|
||||||
});
|
});
|
||||||
|
|
||||||
// Execute policies stack.
|
// Execute policies stack.
|
||||||
|
@ -246,6 +246,7 @@ module.exports = {
|
|||||||
request: Object.assign(_.clone(context.request), {
|
request: Object.assign(_.clone(context.request), {
|
||||||
graphql: null,
|
graphql: null,
|
||||||
}),
|
}),
|
||||||
|
response: _.clone(context.response),
|
||||||
});
|
});
|
||||||
|
|
||||||
// Note: we've to used the Object.defineProperties to reset the prototype. It seems that the cloning the context
|
// Note: we've to used the Object.defineProperties to reset the prototype. It seems that the cloning the context
|
||||||
|
Loading…
x
Reference in New Issue
Block a user