chore: Differentiate trigger and action output types

This commit is contained in:
Faruk AYDIN
2022-10-21 19:14:00 +02:00
parent 64807fbc11
commit 7e2dd95134
8 changed files with 19 additions and 17 deletions

View File

@@ -30,7 +30,7 @@ const fetchTweets = async ($: IGlobalVariable, username: string) => {
if (response.data.meta.result_count > 0) {
response.data.data.forEach((tweet: IJSONObject) => {
$.output.data.push({
$.triggerOutput.data.push({
raw: tweet,
meta: {
internalId: tweet.id as string,
@@ -40,7 +40,7 @@ const fetchTweets = async ($: IGlobalVariable, username: string) => {
}
} while (response.data.meta.next_token && !$.execution.testRun);
return $.output;
return $.triggerOutput;
};
const getUserTweets = async (