fix: Adjust action item of slack post message
This commit is contained in:
@@ -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;
|
||||
|
@@ -69,7 +69,9 @@ const globalVariable = async (
|
||||
data: [],
|
||||
},
|
||||
actionOutput: {
|
||||
data: null,
|
||||
data: {
|
||||
raw: null,
|
||||
},
|
||||
},
|
||||
pushTriggerItem: (triggerItem: ITriggerItem) => {
|
||||
$.triggerOutput.data.push(triggerItem);
|
||||
|
4
packages/types/index.d.ts
vendored
4
packages/types/index.d.ts
vendored
@@ -223,9 +223,7 @@ export interface IActionOutput {
|
||||
}
|
||||
|
||||
export interface IActionItem {
|
||||
raw: {
|
||||
data?: IJSONObject;
|
||||
};
|
||||
raw: IJSONObject;
|
||||
}
|
||||
|
||||
export interface IAction {
|
||||
|
Reference in New Issue
Block a user