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) {
super();
this.created = optionsArg.created;
this.domainName = optionsArg.domainName;
this.privateKey = optionsArg.privateKey;
this.publicKey = optionsArg.publicKey;
this.csr = optionsArg.csr;
Object.keys(optionsArg).forEach(key => {
this[key] = optionsArg[key];
});
}
}