From 5460b69418444fcbafc3e183b43b70f2a7a8f5a7 Mon Sep 17 00:00:00 2001 From: AxelRueweler Date: Wed, 28 Oct 2020 23:34:16 +0100 Subject: [PATCH] :zap: Select executions by the firstId (#1108) * Add option to get the full execution data from the server. * Select Executions by the firstId. --- packages/cli/src/Server.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index 44b90e9635..60849a0444 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -41,6 +41,7 @@ import { IExecutionDeleteFilter, IExecutionFlatted, IExecutionFlattedDb, + IExecutionResponse, IExecutionFlattedResponse, IExecutionPushResponse, IExecutionResponse, @@ -89,6 +90,7 @@ import { FindOneOptions, LessThan, LessThanOrEqual, + MoreThanOrEqual, Not, } from 'typeorm'; @@ -1423,6 +1425,8 @@ class App { const countFilter = JSON.parse(JSON.stringify(filter)); if (req.query.lastId) { filter.id = LessThan(req.query.lastId); + } else if (req.query.firstId) { + filter.id = MoreThanOrEqual(req.query.firstId); } countFilter.select = ['id'];