chore: Differentiate trigger and action output types
This commit is contained in:
@@ -24,12 +24,12 @@ export const processFlow = async (options: ProcessFlowOptions) => {
|
||||
await triggerCommand.run($);
|
||||
} catch (error) {
|
||||
if (error?.response?.httpError) {
|
||||
$.output.error = error.response.httpError;
|
||||
$.triggerOutput.error = error.response.httpError;
|
||||
} else {
|
||||
try {
|
||||
$.output.error = JSON.parse(error.message);
|
||||
$.triggerOutput.error = JSON.parse(error.message);
|
||||
} catch {
|
||||
$.output.error = { error: error.message };
|
||||
$.triggerOutput.error = { error: error.message };
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,5 +38,5 @@ export const processFlow = async (options: ProcessFlowOptions) => {
|
||||
triggerCommand.sort($);
|
||||
}
|
||||
|
||||
return $.output;
|
||||
return $.triggerOutput;
|
||||
};
|
||||
|
Reference in New Issue
Block a user