mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
⚡ 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:
parent
708b0c8b26
commit
5460b69418
|
@ -41,6 +41,7 @@ import {
|
||||||
IExecutionDeleteFilter,
|
IExecutionDeleteFilter,
|
||||||
IExecutionFlatted,
|
IExecutionFlatted,
|
||||||
IExecutionFlattedDb,
|
IExecutionFlattedDb,
|
||||||
|
IExecutionResponse,
|
||||||
IExecutionFlattedResponse,
|
IExecutionFlattedResponse,
|
||||||
IExecutionPushResponse,
|
IExecutionPushResponse,
|
||||||
IExecutionResponse,
|
IExecutionResponse,
|
||||||
|
@ -89,6 +90,7 @@ import {
|
||||||
FindOneOptions,
|
FindOneOptions,
|
||||||
LessThan,
|
LessThan,
|
||||||
LessThanOrEqual,
|
LessThanOrEqual,
|
||||||
|
MoreThanOrEqual,
|
||||||
Not,
|
Not,
|
||||||
} from 'typeorm';
|
} from 'typeorm';
|
||||||
|
|
||||||
|
@ -1423,6 +1425,8 @@ class App {
|
||||||
const countFilter = JSON.parse(JSON.stringify(filter));
|
const countFilter = JSON.parse(JSON.stringify(filter));
|
||||||
if (req.query.lastId) {
|
if (req.query.lastId) {
|
||||||
filter.id = LessThan(req.query.lastId);
|
filter.id = LessThan(req.query.lastId);
|
||||||
|
} else if (req.query.firstId) {
|
||||||
|
filter.id = MoreThanOrEqual(req.query.firstId);
|
||||||
}
|
}
|
||||||
countFilter.select = ['id'];
|
countFilter.select = ['id'];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue