From e5e9376dd89bae290cfd28cc49c1a930d094c217 Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Thu, 4 Jul 2024 17:56:51 +0200 Subject: [PATCH] fix: pass flag resolver in api service creation --- src/lib/features/api-tokens/createApiTokenService.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/features/api-tokens/createApiTokenService.ts b/src/lib/features/api-tokens/createApiTokenService.ts index 5a834509a6d2..18b236c628c8 100644 --- a/src/lib/features/api-tokens/createApiTokenService.ts +++ b/src/lib/features/api-tokens/createApiTokenService.ts @@ -15,7 +15,12 @@ export const createApiTokenService = ( config: IUnleashConfig, ): ApiTokenService => { const { eventBus, getLogger } = config; - const apiTokenStore = new ApiTokenStore(db, eventBus, getLogger); + const apiTokenStore = new ApiTokenStore( + db, + eventBus, + getLogger, + config.flagResolver, + ); const environmentStore = new EnvironmentStore(db, eventBus, getLogger); const eventService = createEventsService(db, config);