Fix querying faults in UI showing no results
This commit is contained in:
1 parent
c17d2eae2f
commit
dd9cd01681
1 file changed
+9
-6
+9
-6
@@ -147,8 +147,9 @@ for (const [resource, flags] of Object.entries(resources)) {
|
|||||||
// Exclude temporary tasks and faults
|
// Exclude temporary tasks and faults
|
||||||
if (resource === "tasks" || resource === "faults") {
|
if (resource === "tasks" || resource === "faults") {
|
||||||
filter = and(filter, [
|
filter = and(filter, [
|
||||||
"NOT",
|
"OR",
|
||||||
["<", ["PARAM", "expiry"], Date.now() + 60000],
|
[">=", ["PARAM", "expiry"], Date.now() + 60000],
|
||||||
|
["IS NULL", ["PARAM", "expiry"]],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -195,8 +196,9 @@ for (const [resource, flags] of Object.entries(resources)) {
|
|||||||
// Exclude temporary tasks and faults
|
// Exclude temporary tasks and faults
|
||||||
if (resource === "tasks" || resource === "faults") {
|
if (resource === "tasks" || resource === "faults") {
|
||||||
filter = and(filter, [
|
filter = and(filter, [
|
||||||
"NOT",
|
"OR",
|
||||||
["<", ["PARAM", "expiry"], Date.now() + 60000],
|
[">=", ["PARAM", "expiry"], Date.now() + 60000],
|
||||||
|
["IS NULL", ["PARAM", "expiry"]],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -254,8 +256,9 @@ for (const [resource, flags] of Object.entries(resources)) {
|
|||||||
// Exclude temporary tasks and faults
|
// Exclude temporary tasks and faults
|
||||||
if (resource === "tasks" || resource === "faults") {
|
if (resource === "tasks" || resource === "faults") {
|
||||||
filter = and(filter, [
|
filter = and(filter, [
|
||||||
"NOT",
|
"OR",
|
||||||
["<", ["PARAM", "expiry"], Date.now() + 60000],
|
[">=", ["PARAM", "expiry"], Date.now() + 60000],
|
||||||
|
["IS NULL", ["PARAM", "expiry"]],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user