Select executions by the firstId (#1108)

* Add option to get the full execution data from the server.

* Select Executions by the firstId.
This commit is contained in:
AxelRueweler 2020-10-28 23:34:16 +01:00 committed by GitHub
parent 708b0c8b26
commit 5460b69418
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'];