diff --git a/src/lib/features/scheduler/schedule-services.ts b/src/lib/features/scheduler/schedule-services.ts index 630c4c2510..de64a296e7 100644 --- a/src/lib/features/scheduler/schedule-services.ts +++ b/src/lib/features/scheduler/schedule-services.ts @@ -13,10 +13,10 @@ import type { IUnleashServices } from '../../services/index.js'; * @param services * @param config */ -export const scheduleServices = async ( +export const scheduleServices = ( services: IUnleashServices, config: IUnleashConfig, -): Promise => { +): void => { const { accountService, schedulerService, diff --git a/src/lib/server-impl.ts b/src/lib/server-impl.ts index bdd78b78ae..54ac5d01b1 100644 --- a/src/lib/server-impl.ts +++ b/src/lib/server-impl.ts @@ -182,6 +182,7 @@ import { getDbConfig } from '../test/e2e/helpers/database-config.js'; import { testDbPrefix } from '../test/e2e/helpers/database-init.js'; import type { RequestHandler } from 'express'; import { UPDATE_REVISION } from './features/feature-toggle/configuration-revision-service.js'; +import type { IFeatureUsageInfo } from './services/version-service.js'; export async function initialServiceSetup( { authentication }: Pick, @@ -228,7 +229,7 @@ export async function createApp( await initialServiceSetup(config, services); if (!config.disableScheduler) { - await scheduleServices(services, config); + scheduleServices(services, config); } const metricsMonitor = fm.createMetricsMonitor(); @@ -392,6 +393,7 @@ async function create( export { start, create, + scheduleServices, createDb, resetDb, getDbConfig, @@ -538,6 +540,7 @@ export type { ExportImportService, QueryOverride, IUserPermission, + IFeatureUsageInfo, }; export * from './openapi/index.js'; export * from './types/index.js';