diff --git a/services/credentials-service/src/app.module.ts b/services/credentials-service/src/app.module.ts index 13e59c4fa..96807f7f0 100644 --- a/services/credentials-service/src/app.module.ts +++ b/services/credentials-service/src/app.module.ts @@ -1,10 +1,10 @@ -import { HttpModule, HttpService } from '@nestjs/axios'; +import { HttpModule } from '@nestjs/axios'; import { Module } from '@nestjs/common'; import { ConfigModule, ConfigService } from '@nestjs/config'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { CredentialsModule } from './credentials/credentials.module'; -import { HealthCheckService, TerminusModule } from '@nestjs/terminus'; +import { TerminusModule } from '@nestjs/terminus'; import { HealthCheckUtilsService } from './credentials/utils/healthcheck.utils.service'; import { PrismaClient } from '@prisma/client'; import { RevocationList } from './revocation-list/revocation-list.helper'; @@ -21,6 +21,6 @@ import { RevocationListModule } from './revocation-list/revocation-list.module'; RevocationListModule, ], controllers: [AppController], - providers: [HttpService, HealthCheckService, AppService, ConfigService, PrismaClient, HealthCheckUtilsService, RevocationList, RevocationListImpl, RevocationListService], + providers: [ AppService, ConfigService, PrismaClient, HealthCheckUtilsService, RevocationList, RevocationListImpl, RevocationListService], }) export class AppModule {} diff --git a/services/credentials-service/src/credentials/credentials.module.ts b/services/credentials-service/src/credentials/credentials.module.ts index 9c34c0912..43530bd68 100644 --- a/services/credentials-service/src/credentials/credentials.module.ts +++ b/services/credentials-service/src/credentials/credentials.module.ts @@ -1,7 +1,7 @@ import { Module } from '@nestjs/common'; import { CredentialsService } from './credentials.service'; import { CredentialsController } from './credentials.controller'; -import { HttpModule, HttpService } from '@nestjs/axios'; +import { HttpModule } from '@nestjs/axios'; import { IdentityUtilsService } from './utils/identity.utils.service'; import { RenderingUtilsService } from './utils/rendering.utils.service'; import { SchemaUtilsSerivce } from './utils/schema.utils.service'; @@ -9,7 +9,7 @@ import { PrismaClient } from '@prisma/client'; @Module({ imports: [HttpModule], - providers: [HttpService, CredentialsService, PrismaClient, IdentityUtilsService, RenderingUtilsService, SchemaUtilsSerivce], + providers: [CredentialsService, PrismaClient, IdentityUtilsService, RenderingUtilsService, SchemaUtilsSerivce], controllers: [CredentialsController], exports: [IdentityUtilsService] }) diff --git a/services/credentials-service/src/credentials/utils/rendering.utils.service.ts b/services/credentials-service/src/credentials/utils/rendering.utils.service.ts index 296487d0b..be29b927b 100644 --- a/services/credentials-service/src/credentials/utils/rendering.utils.service.ts +++ b/services/credentials-service/src/credentials/utils/rendering.utils.service.ts @@ -5,9 +5,9 @@ import { } from '@nestjs/common'; import { W3CCredential } from 'vc.types'; import { JwtCredentialSubject } from 'src/app.interface'; -import * as wkhtmltopdf from 'wkhtmltopdf'; +import wkhtmltopdf from 'wkhtmltopdf'; import { compile } from 'handlebars'; -import * as QRCode from 'qrcode'; +import QRCode from 'qrcode'; import JSZip from 'jszip'; @Injectable()