diff --git a/src/widgets/proxmoxbackupserver/widget.js b/src/widgets/proxmoxbackupserver/widget.js index 46598fd11..c807c0cef 100644 --- a/src/widgets/proxmoxbackupserver/widget.js +++ b/src/widgets/proxmoxbackupserver/widget.js @@ -10,7 +10,8 @@ const widget = { }, "nodes/localhost/tasks": { endpoint: "nodes/localhost/tasks", - params: ["errors", "limit", "since"], + params: ["errors", "limit"], + optionalParams: ["since"], }, "nodes/localhost/status": { endpoint: "nodes/localhost/status", diff --git a/src/widgets/proxmoxbackupserver/widget.test.js b/src/widgets/proxmoxbackupserver/widget.test.js index 024cc0fd9..dd9278a39 100644 --- a/src/widgets/proxmoxbackupserver/widget.test.js +++ b/src/widgets/proxmoxbackupserver/widget.test.js @@ -9,7 +9,8 @@ describe("proxmoxbackupserver widget config", () => { expectWidgetConfigShape(widget); }); - it("requires failed task query params for the tasks endpoint", () => { - expect(widget.mappings["nodes/localhost/tasks"].params).toEqual(["errors", "limit", "since"]); + it("requires failed task query params for the tasks endpoint, with since optional", () => { + expect(widget.mappings["nodes/localhost/tasks"].params).toEqual(["errors", "limit"]); + expect(widget.mappings["nodes/localhost/tasks"].optionalParams).toEqual(["since"]); }); });