fix(core): update

This commit is contained in:
Philipp Kunz 2019-01-13 00:24:39 +01:00
parent 1ef3615a49
commit 7eff6ea36a

View File

@ -31,10 +31,8 @@ export class Cert extends plugins.smartdata.SmartDataDbDoc<Cert> implements inte
constructor(optionsArg: ICert) { constructor(optionsArg: ICert) {
super(); super();
this.created = optionsArg.created; Object.keys(optionsArg).forEach(key => {
this.domainName = optionsArg.domainName; this[key] = optionsArg[key];
this.privateKey = optionsArg.privateKey; });
this.publicKey = optionsArg.publicKey;
this.csr = optionsArg.csr;
} }
} }