[MessageBus] Systematically pass the return value of getProcess* into MapUtil.toJson()
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 3m58s

This commit is contained in:
Sosthene 2025-09-11 09:20:47 +02:00
parent 09a2fee475
commit a8bdb18cc4
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ export default class MapUtils {
private constructor() { } private constructor() { }
public static toJson(input: any): any { public static toJson(input: any): { [key: string]: any } {
if (input instanceof Map) { if (input instanceof Map) {
const obj: Record<string, any> = {}; const obj: Record<string, any> = {};
for (const [key, value] of input.entries()) { for (const [key, value] of input.entries()) {

View File

@ -474,7 +474,7 @@ export default class MessageBus {
processesDecoded[processId] = processData; processesDecoded[processId] = processData;
} }
return processesDecoded; return MapUtils.toJson(processesDecoded);
} }
public createProcess(processData: any, privateFields: string[], roles: {}): Promise<any> { public createProcess(processData: any, privateFields: string[], roles: {}): Promise<any> {