fix(core): update

This commit is contained in:
Philipp Kunz 2019-01-13 00:50:43 +01:00
parent d6b1f942b3
commit 2b3c28c7a1

View File

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