Replace descriptions with public_data

This commit is contained in:
NicolasCantu 2025-03-03 23:23:59 +01:00
parent bb0d998c9f
commit 15626201a8

View File

@ -1136,8 +1136,8 @@ export default class Services {
public getPublicData(process: Process): Record<string, any> | null { public getPublicData(process: Process): Record<string, any> | null {
const lastCommitedState = this.getLastCommitedState(process); const lastCommitedState = this.getLastCommitedState(process);
if (lastCommitedState && lastCommitedState.descriptions) { if (lastCommitedState && lastCommitedState.public_data) {
return lastCommitedState.descriptions; return lastCommitedState.public_data;
} else { } else {
return null; return null;
} }
@ -1145,8 +1145,8 @@ export default class Services {
public getProcessName(process: Process): string | null { public getProcessName(process: Process): string | null {
const lastCommitedState = this.getLastCommitedState(process); const lastCommitedState = this.getLastCommitedState(process);
if (lastCommitedState && lastCommitedState.descriptions) { if (lastCommitedState && lastCommitedState.public_data) {
const processName = lastCommitedState!.descriptions['processName']; const processName = lastCommitedState!.public_data['processName'];
if (processName) { return processName } if (processName) { return processName }
else { return null } else { return null }
} else { } else {