getCipherForDiff catch missing fields in encrypted_pcd
This commit is contained in:
parent
cc2f960af0
commit
51664e62ec
@ -524,10 +524,6 @@ export default class Services {
|
|||||||
// get the process
|
// get the process
|
||||||
try {
|
try {
|
||||||
const process = await this.getProcess(diff.process_id);
|
const process = await this.getProcess(diff.process_id);
|
||||||
} catch (e) {
|
|
||||||
console.error('Failed to get process:', e);
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
const state = process.states.find(state => state.state_id === diff.state_id);
|
const state = process.states.find(state => state.state_id === diff.state_id);
|
||||||
if (state) {
|
if (state) {
|
||||||
// Now we return the encrypted value for that field
|
// Now we return the encrypted value for that field
|
||||||
@ -538,6 +534,10 @@ export default class Services {
|
|||||||
console.error('Failed to get encrypted value');
|
console.error('Failed to get encrypted value');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.error('Failed to get process:', e);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user