From 82124d471ecf89b3efc52f88789e3ad5dfb0bb99 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Wed, 23 Sep 2020 23:15:00 -0700 Subject: [PATCH] Fix invalid arguments fault in refresh preset Happens when upgrading from v1.1 where genieacs-gui creates refresh configuration with 'age' passed as a string. --- lib/local-cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/local-cache.ts b/lib/local-cache.ts index 61552e6..386d6be 100644 --- a/lib/local-cache.ts +++ b/lib/local-cache.ts @@ -188,7 +188,7 @@ async function fetchPresets(): Promise { for (const c of preset["configurations"]) { switch (c.type) { case "age": - _provisions.push(["refresh", c.name, c.age]); + _provisions.push(["refresh", c.name, +c.age]); break; case "value":