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 {
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 {