0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed boot crashing when segment config is present (#19625)

refs https://github.com/TryGhost/Ghost/commit/c4912665e5d5af2c25e

We removed the segment service but continued to attempt to load it when
the segment config was present.
This commit is contained in:
Fabien 'egg' O'Carroll 2024-01-31 13:01:34 +07:00 committed by GitHub
parent d5077ac1bf
commit 38b29d0566
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -292,11 +292,8 @@ async function initAppService() {
* Services are components that make up part of Ghost and need initializing on boot
* These services should all be part of core, frontend services should be loaded with the frontend
* We are working towards this being a service loader, with the ability to make certain services optional
*
* @param {object} options
* @param {object} options.config
*/
async function initServices({config}) {
async function initServices() {
debug('Begin: initServices');
debug('Begin: Services');
@ -381,11 +378,6 @@ async function initServices({config}) {
]);
debug('End: Services');
// Initialize analytics events
if (config.get('segment:key')) {
require('./server/services/segment').init();
}
debug('End: initServices');
}