Skip to content

Commit

Permalink
updating module to match service
Browse files Browse the repository at this point in the history
  • Loading branch information
Ballioli committed Jul 5, 2024
1 parent 9a9fe66 commit b97e6ff
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DynamicModule } from '@nestjs/common'
import { BaseTemplateAPIModuleConfig } from '../../../../types'
import { UserProfileService } from './user-profile.service'
import { Configuration, V2UsersApi } from '@island.is/clients/user-profile'
import { Configuration, V2MeApi } from '@island.is/clients/user-profile'
import { IslykillApiModule } from '@island.is/clients/islykill'
export class UserProfileModule {
static register(config: BaseTemplateAPIModuleConfig): DynamicModule {
Expand All @@ -17,9 +17,9 @@ export class UserProfileModule {
providers: [
UserProfileService,
{
provide: V2UsersApi,
provide: V2MeApi,
useFactory: () =>
new V2UsersApi(
new V2MeApi(
new Configuration({
fetchApi: fetch,
basePath: config.userProfile.serviceBasePath,
Expand Down

0 comments on commit b97e6ff

Please sign in to comment.