Skip to content

Commit

Permalink
Merge pull request #288 from credebl/develop-main-bulk-issuances
Browse files Browse the repository at this point in the history
refactor: share credentials API
  • Loading branch information
KulkarniShashank authored Nov 22, 2023
2 parents 865d729 + 0e4931f commit 33acc49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 8 additions & 1 deletion apps/issuance/src/issuance.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import { IssuanceRepository } from './issuance.repository';
import { IssuanceService } from './issuance.service';
import { OutOfBandIssuance } from '../templates/out-of-band-issuance.template';
import { EmailDto } from '@credebl/common/dtos/email.dto';
import { BullModule } from '@nestjs/bull';
import { CacheModule } from '@nestjs/cache-manager';
import * as redisStore from 'cache-manager-redis-store';
import { BulkIssuanceProcessor } from './issuance.processor';
import { AwsService } from '@credebl/aws';

Expand All @@ -23,7 +26,11 @@ import { AwsService } from '@credebl/aws';
}
}
]),
CommonModule
CommonModule,
CacheModule.register({ store: redisStore, host: process.env.REDIS_HOST, port: process.env.REDIS_PORT }),
BullModule.registerQueue({
name: 'bulk-issuance'
})
],
controllers: [IssuanceController],
providers: [IssuanceService, IssuanceRepository, PrismaService, Logger, OutOfBandIssuance, EmailDto, BulkIssuanceProcessor, AwsService]
Expand Down
4 changes: 0 additions & 4 deletions apps/user/src/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,10 +547,6 @@ export class UserService {
* @returns
*/
async shareUserCertificate(shareUserCertificate: ShareUserCertificateI): Promise<unknown> {
const getAttributes = await this.userRepository.getAttributesBySchemaId(shareUserCertificate);
if (!getAttributes) {
throw new NotFoundException(ResponseMessages.schema.error.invalidSchemaId);
}

const attributeArray = [];
let attributeJson = {};
Expand Down

0 comments on commit 33acc49

Please sign in to comment.