test(factories/step): let null override appKey

This commit is contained in:
Ali BARIN
2025-01-16 09:49:57 +00:00
parent 4105e6f982
commit 3496495eca

View File

@@ -16,8 +16,11 @@ export const createStep = async (params = {}) => {
params?.position || (lastStep?.position ? lastStep.position + 1 : 1);
params.status = params?.status || 'completed';
params.appKey =
params?.appKey || (params.type === 'action' ? 'deepl' : 'webhook');
if (params.appKey !== null) {
params.appKey =
params?.appKey || (params.type === 'action' ? 'deepl' : 'webhook');
}
params.parameters = params?.parameters || {};