From 7eff6ea36a56813c1d043c32fc8eee1a0638171e Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 13 Jan 2019 00:24:39 +0100 Subject: [PATCH] fix(core): update --- ts/smartacme.classes.cert.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ts/smartacme.classes.cert.ts b/ts/smartacme.classes.cert.ts index 6dd13be..e0f7911 100644 --- a/ts/smartacme.classes.cert.ts +++ b/ts/smartacme.classes.cert.ts @@ -31,10 +31,8 @@ export class Cert extends plugins.smartdata.SmartDataDbDoc 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]; + }); } }