refactor: Restructure twitter app with beforeRequest hook

This commit is contained in:
Faruk AYDIN
2022-10-18 11:13:53 +02:00
committed by Ali BARIN
parent bc402883b3
commit a5e114ac68
14 changed files with 119 additions and 113 deletions

View File

@@ -68,9 +68,11 @@ const globalVariable = async (
});
if (trigger && trigger.dedupeStrategy === 'unique') {
const lastInternalIds = await flow?.lastInternalIds();
const lastInternalIds = testRun ? [] : await flow?.lastInternalIds();
const isAlreadyProcessed = (internalId: string) => {
if (testRun) return false;
return lastInternalIds?.includes(internalId);
};