Skip to content

Commit

Permalink
fix: pass flag resolver in api service creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek committed Jul 4, 2024
1 parent 415cadb commit e5e9376
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/features/api-tokens/createApiTokenService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e5e9376

Please sign in to comment.