From 38b29d0566f87ffbf3ac9db096d9200f516b93b4 Mon Sep 17 00:00:00 2001 From: Fabien 'egg' O'Carroll Date: Wed, 31 Jan 2024 13:01:34 +0700 Subject: [PATCH] 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. --- ghost/core/core/boot.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/ghost/core/core/boot.js b/ghost/core/core/boot.js index 798e4937b2..05820d9b62 100644 --- a/ghost/core/core/boot.js +++ b/ghost/core/core/boot.js @@ -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'); }