Add forgotten space in query GetNodeEventsWithLimit (#6541)

This commit is contained in:
PTR 2024-11-18 00:12:57 +01:00 committed by GitHub
parent cae1f7ea14
commit c773857b17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
db.js
View File

@ -1778,7 +1778,7 @@ module.exports.CreateDB = function (parent, func) {
var query = "SELECT doc FROM events WHERE (nodeid = $1 AND domain = $2";
var dataarray = [nodeid, domain];
if (filter != null) {
query = query + "AND action = $3) ORDER BY time DESC LIMIT $4";
query = query + " AND action = $3) ORDER BY time DESC LIMIT $4";
dataarray.push(filter);
} else {
query = query + ") ORDER BY time DESC LIMIT $3";