feat: Implement draft version of pagination with user tweet trigger
This commit is contained in:
@@ -8,6 +8,7 @@ class Execution extends Base {
|
||||
id!: string;
|
||||
flowId!: string;
|
||||
testRun = false;
|
||||
internalId!: string;
|
||||
executionSteps: ExecutionStep[] = [];
|
||||
|
||||
static tableName = 'executions';
|
||||
@@ -19,6 +20,7 @@ class Execution extends Base {
|
||||
id: { type: 'string', format: 'uuid' },
|
||||
flowId: { type: 'string', format: 'uuid' },
|
||||
testRun: { type: 'boolean' },
|
||||
internalId: { type: 'string' },
|
||||
},
|
||||
};
|
||||
|
||||
|
@@ -49,6 +49,14 @@ class Flow extends Base {
|
||||
},
|
||||
});
|
||||
|
||||
async lastInternalId() {
|
||||
const lastInternalIdFetched: any = await this.$relatedQuery(
|
||||
'executions'
|
||||
).max('internal_id');
|
||||
|
||||
return lastInternalIdFetched[0].max;
|
||||
}
|
||||
|
||||
async $beforeUpdate(
|
||||
opt: ModelOptions,
|
||||
queryContext: QueryContext
|
||||
|
Reference in New Issue
Block a user