mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-26 22:23:14 -05:00
Add forgotten space in query GetNodeEventsWithLimit (#6541)
This commit is contained in:
parent
cae1f7ea14
commit
c773857b17
2
db.js
2
db.js
@ -1778,7 +1778,7 @@ module.exports.CreateDB = function (parent, func) {
|
|||||||
var query = "SELECT doc FROM events WHERE (nodeid = $1 AND domain = $2";
|
var query = "SELECT doc FROM events WHERE (nodeid = $1 AND domain = $2";
|
||||||
var dataarray = [nodeid, domain];
|
var dataarray = [nodeid, domain];
|
||||||
if (filter != null) {
|
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);
|
dataarray.push(filter);
|
||||||
} else {
|
} else {
|
||||||
query = query + ") ORDER BY time DESC LIMIT $3";
|
query = query + ") ORDER BY time DESC LIMIT $3";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user