diff --git a/apps/user/src/user.service.ts b/apps/user/src/user.service.ts index 6385ae49c..78cb88a52 100644 --- a/apps/user/src/user.service.ts +++ b/apps/user/src/user.service.ts @@ -547,10 +547,6 @@ export class UserService { * @returns */ async shareUserCertificate(shareUserCertificate: ShareUserCertificateI): Promise { - const getAttributes = await this.userRepository.getAttributesBySchemaId(shareUserCertificate); - if (!getAttributes) { - throw new NotFoundException(ResponseMessages.schema.error.invalidSchemaId); - } const attributeArray = []; let attributeJson = {};