1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-11-10 01:19:53 +01:00

chore: expose startup task service

This commit is contained in:
David Leek 2024-01-17 15:37:29 +01:00
parent fa16545862
commit a2889c3b41
No known key found for this signature in database
GPG Key ID: 515EE0F1BB6D0BE1
2 changed files with 10 additions and 0 deletions

View File

@ -104,6 +104,7 @@ import {
createFakeTagTypeService,
createTagTypeService,
} from '../features/tag-type/createTagTypeService';
import { StartupTaskService } from 'lib/features/startup-tasks/startup-task-service';
export const createServices = (
stores: IUnleashStores,
@ -317,6 +318,11 @@ export const createServices = (
const eventAnnouncerService = new EventAnnouncerService(stores, config);
const startupTaskService = new StartupTaskService(
config.getLogger,
maintenanceService,
);
return {
accessService,
accountService,
@ -373,6 +379,7 @@ export const createServices = (
transactionalDependentFeaturesService,
clientFeatureToggleService,
featureSearchService,
startupTaskService,
};
};
@ -419,4 +426,5 @@ export {
DependentFeaturesService,
ClientFeatureToggleService,
FeatureSearchService,
StartupTaskService,
};

View File

@ -51,6 +51,7 @@ import { DependentFeaturesService } from '../features/dependent-features/depende
import { WithTransactional } from '../db/transaction';
import { ClientFeatureToggleService } from '../features/client-feature-toggles/client-feature-toggle-service';
import { FeatureSearchService } from '../features/feature-search/feature-search-service';
import { StartupTaskService } from '../features/startup-tasks/startup-task-service';
export interface IUnleashServices {
accessService: AccessService;
@ -111,4 +112,5 @@ export interface IUnleashServices {
transactionalDependentFeaturesService: WithTransactional<DependentFeaturesService>;
clientFeatureToggleService: ClientFeatureToggleService;
featureSearchService: FeatureSearchService;
startupTaskService: StartupTaskService;
}