fix: Adjust action item of slack post message

This commit is contained in:
Faruk AYDIN
2022-10-22 19:50:25 +02:00
parent a56135ca57
commit 2bb058da36
3 changed files with 9 additions and 5 deletions

View File

@@ -16,7 +16,11 @@ const postMessage = async (
throw new Error(JSON.stringify(response.data));
}
$.actionOutput.data.raw = response?.data?.message;
const message = {
raw: response?.data?.message,
};
$.setActionItem(message);
};
export default postMessage;

View File

@@ -69,7 +69,9 @@ const globalVariable = async (
data: [],
},
actionOutput: {
data: null,
data: {
raw: null,
},
},
pushTriggerItem: (triggerItem: ITriggerItem) => {
$.triggerOutput.data.push(triggerItem);

View File

@@ -223,9 +223,7 @@ export interface IActionOutput {
}
export interface IActionItem {
raw: {
data?: IJSONObject;
};
raw: IJSONObject;
}
export interface IAction {