mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-24 02:52:24 -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,
|
||||
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'];
|
||||
|
||||
|
|
Loading…
Reference in a new issue