mirror of
https://github.com/strapi/strapi.git
synced 2025-12-12 15:32:42 +00:00
Cleanup
This commit is contained in:
parent
2ea04f1cd4
commit
21ac45bdfd
3
packages/plugins/graphql/server/bootstrap.js
vendored
3
packages/plugins/graphql/server/bootstrap.js
vendored
@ -22,7 +22,7 @@ module.exports = async strapi => {
|
||||
return;
|
||||
}
|
||||
|
||||
const config = getOr({}, 'config', strapi.plugins.graphql);
|
||||
const config = getOr({}, 'config', strapi.plugin('graphql'));
|
||||
const apolloServerConfig = getOr({}, 'apolloServer', config);
|
||||
|
||||
const serverParams = {
|
||||
@ -84,6 +84,7 @@ module.exports = async strapi => {
|
||||
});
|
||||
|
||||
// Register destroy behavior
|
||||
// todo[v4]: expose this in strapi-server.js (destroy attribute)
|
||||
strapi.plugins.graphql.destroy = async () => {
|
||||
await server.stop();
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user