1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00

feat: transactional project service support (#7799)

This commit is contained in:
Mateusz Kwasniewski 2024-08-07 16:34:55 +02:00 committed by GitHub
parent 4daede8e1c
commit 8caa1e242c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -300,6 +300,9 @@ export const createServices = (
const projectService = db
? createProjectService(db, config)
: createFakeProjectService(config);
const transactionalProjectService = db
? withTransactional((db: Db) => createProjectService(db, config), db)
: withFakeTransactional(createFakeProjectService(config));
const projectInsightsService = db
? createProjectInsightsService(db, config)
: createFakeProjectInsightsService().projectInsightsService;
@ -398,6 +401,7 @@ export const createServices = (
featureTypeService,
healthService,
projectService,
transactionalProjectService,
strategyService,
tagTypeService,
transactionalTagTypeService,

View File

@ -78,6 +78,7 @@ export interface IUnleashServices {
healthService: HealthService;
projectHealthService: ProjectHealthService;
projectService: ProjectService;
transactionalProjectService: WithTransactional<ProjectService>;
playgroundService: PlaygroundService;
frontendApiService: FrontendApiService;
publicSignupTokenService: PublicSignupTokenService;