Commit a2099550 authored by Hidde-Jan Jongsma's avatar Hidde-Jan Jongsma

Remove jolocom wallet from jolocom credential type

parent f7c3c7aa
import {
BaseEntity,
Entity,
PrimaryGeneratedColumn,
ManyToOne,
Column,
} from 'typeorm';
import { JolocomWallet } from './jolocom-wallet.entity';
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
import { BaseMetadata } from 'cred-types-jolocom-core/js/types';
@Entity()
......@@ -13,12 +6,6 @@ export class JolocomCredentialType extends BaseEntity {
@PrimaryGeneratedColumn()
id: number;
@ManyToOne(
() => JolocomWallet,
wallet => wallet.credentialOffers,
)
wallet: JolocomWallet;
@Column({ unique: true })
type: string;
......
......@@ -33,12 +33,6 @@ export class JolocomWallet extends BaseEntity {
@JoinColumn()
organization: Organization;
@OneToMany(
() => JolocomCredentialType,
credentialOffer => credentialOffer.wallet,
)
credentialOffers: JolocomCredentialType[];
static randomPassword() {
return randomBytes(JOLOCOM_WALLET_PASSWORD_BYTES).toString('hex');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment