🐛 Fixed an issue with current executing workflows when using queues (#1483)

When running n8n in queue mode, the query to search for currently
running workflows would fail on Postgres but work fine with SQLite and
MySQL / MariaDB. This fix makes it work fine for all RDBMS.
This commit is contained in:
Omar Ajoue 2021-03-01 12:55:01 +01:00 committed by GitHub
parent 54f949a972
commit 14329b2eb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1647,6 +1647,10 @@ class App {
const currentlyRunningExecutionIds = currentJobs.map(job => job.data.executionId);
if (currentlyRunningExecutionIds.length === 0) {
return [];
}
const resultsQuery = await Db.collections.Execution!
.createQueryBuilder("execution")
.select([