feat: add new favorite photo trigger in flickr

This commit is contained in:
Ali BARIN
2022-04-13 01:22:13 +02:00
committed by Ömer Faruk Aydın
parent d4ad8645c9
commit 651cceec14
12 changed files with 131 additions and 16 deletions

View File

@@ -133,13 +133,12 @@ class Processor {
.orderBy('created_at', 'desc')
.first();
const lastExecutionStepCratedAt = lastExecutionStep?.dataOut
?.created_at as string;
const lastExecutionStepCreatedAt = lastExecutionStep?.createdAt as string;
const flow = (await step.$relatedQuery('flow')) as Flow;
const command = appInstance.triggers[key];
const startTime = new Date(lastExecutionStepCratedAt || flow.updatedAt);
const startTime = new Date(lastExecutionStepCreatedAt || flow.updatedAt);
let fetchedData;
if (this.testRun) {