[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
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 3m58s
This commit is contained in:
parent
09a2fee475
commit
a8bdb18cc4
@ -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()) {
|
||||||
|
@ -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> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user