MAKING CREDENTIALS WORKS
This commit is contained in:
@@ -46,12 +46,20 @@ export class CredentialController {
|
||||
this.name = credentialData.name;
|
||||
this.typeId = credentialData.typeId;
|
||||
this.companyId = credentialData.companyId;
|
||||
this.fields = credentialData.fields;
|
||||
this._type = credentialData.type;
|
||||
this._company = credentialData.company;
|
||||
this._secureValues = credentialData.securevalues;
|
||||
this.fields = (() => {
|
||||
let fields = credentialData.fields as Record<string, any>;
|
||||
|
||||
this._secureValues.forEach((sv) => (fields[sv.name] = `secure-${sv.id}`));
|
||||
|
||||
return fields;
|
||||
})();
|
||||
this.createdAt = credentialData.createdAt;
|
||||
this.updatedAt = credentialData.updatedAt;
|
||||
|
||||
console.log(credentialData);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user