mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor: Update RunWorkflow to use VMAPI for replacing values in argumentContent
This commit refactors the RunWorkflow class to use the VMAPI module instead of the deprecated VMUtil module for replacing values in the argumentContent. The VMAPI module provides a more up-to-date and efficient method for replacing values, improving the performance and maintainability of the code.
This commit is contained in:
@@ -28,7 +28,7 @@ import logger from 'CommonServer/Utils/Logger';
|
||||
import TimeoutException from 'Common/Types/Exception/TimeoutException';
|
||||
import Exception from 'Common/Types/Exception/Exception';
|
||||
import WorkflowLog from 'Model/Models/WorkflowLog';
|
||||
import VMUtil from 'CommonServer/Utils/VM';
|
||||
import VMAPI from 'CommonServer/Utils/VM/VMAPI';
|
||||
|
||||
const AllComponents: Dictionary<ComponentMetadata> = loadAllComponentMetadata();
|
||||
|
||||
@@ -362,7 +362,7 @@ export default class RunWorkflow {
|
||||
continue;
|
||||
}
|
||||
|
||||
argumentContent = VMUtil.replaceValueInPlace(
|
||||
argumentContent = VMAPI.replaceValueInPlace(
|
||||
storageMap as any,
|
||||
argumentContent as string,
|
||||
argument.type === ComponentInputType.JSON
|
||||
|
||||
Reference in New Issue
Block a user