Skip to content

Commit

Permalink
fix:fixed-sonar-issues
Browse files Browse the repository at this point in the history
Signed-off-by: pallavicoder <[email protected]>
  • Loading branch information
pallavighule committed Oct 4, 2024
1 parent 3168182 commit 341a650
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,6 @@ ENABLE_CORS_IP_LIST="" # Provide a list of domains that are allowed to use this
SCHEMA_FILE_SERVER_URL= // Please provide schema URL
SCHEMA_FILE_SERVER_TOKEN=xxxxxxxx // Please provide schema file server token for polygon

FILEUPLOAD_CACHE_TTL= //Provide file upload cache ttl
FILEUPLOAD_CACHE_TTL= //Provide file upload cache ttl

FIELD_UPLOAD_SIZE= //Provide field upload size
4 changes: 2 additions & 2 deletions apps/api-gateway/src/issuance/issuance.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ async downloadBulkIssuanceCSVTemplate(
required: true
})
@UseInterceptors(FileInterceptor('file', {
limits: { fieldSize: 100 * 1024 * 1024 }
}))
limits: { fieldSize: Number(process.env.FIELD_UPLOAD_SIZE) || 100 * 1024 * 1024 }
}))

async issueBulkCredentials(
@Body() clientDetails: ClientDetails,
Expand Down
6 changes: 3 additions & 3 deletions apps/issuance/src/issuance.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ export class IssuanceService {
private readonly commonService: CommonService,
private readonly issuanceRepository: IssuanceRepository,
private readonly userActivityRepository: UserActivityRepository,
@Inject(CACHE_MANAGER) private cacheManager: Cache,
@Inject(CACHE_MANAGER) private readonly cacheManager: Cache,
private readonly outOfBandIssuance: OutOfBandIssuance,
private readonly emailData: EmailDto,
private readonly awsService: AwsService,
@InjectQueue('bulk-issuance') private bulkIssuanceQueue: Queue,
@Inject(CACHE_MANAGER) private cacheService: Cache
@InjectQueue('bulk-issuance') private readonly bulkIssuanceQueue: Queue,
@Inject(CACHE_MANAGER) private readonly cacheService: Cache
) { }

async getIssuanceRecords(orgId: string): Promise<number> {
Expand Down

0 comments on commit 341a650

Please sign in to comment.