Replace descriptions with public_data
This commit is contained in:
parent
bb0d998c9f
commit
15626201a8
@ -1136,8 +1136,8 @@ export default class Services {
|
||||
|
||||
public getPublicData(process: Process): Record<string, any> | null {
|
||||
const lastCommitedState = this.getLastCommitedState(process);
|
||||
if (lastCommitedState && lastCommitedState.descriptions) {
|
||||
return lastCommitedState.descriptions;
|
||||
if (lastCommitedState && lastCommitedState.public_data) {
|
||||
return lastCommitedState.public_data;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
@ -1145,8 +1145,8 @@ export default class Services {
|
||||
|
||||
public getProcessName(process: Process): string | null {
|
||||
const lastCommitedState = this.getLastCommitedState(process);
|
||||
if (lastCommitedState && lastCommitedState.descriptions) {
|
||||
const processName = lastCommitedState!.descriptions['processName'];
|
||||
if (lastCommitedState && lastCommitedState.public_data) {
|
||||
const processName = lastCommitedState!.public_data['processName'];
|
||||
if (processName) { return processName }
|
||||
else { return null }
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user