From 9e09ac85c33c57f5bc4e1dea1b3a42a5f68ff58e Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Wed, 22 May 2024 21:35:41 +0200 Subject: [PATCH] fix(inferium-server): delete-config should work with a number id --- inferium-server.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inferium-server.lua b/inferium-server.lua index 35d015a..2f35dc4 100644 --- a/inferium-server.lua +++ b/inferium-server.lua @@ -3,7 +3,7 @@ local utils = require('libs/utils') local inferium = require('config/inferium') local DEFAULT_HARVESTER_NAME = 'harvester' -local VERSION = "2.0.1" +local VERSION = "2.0.2" local INFERIUM_SERVER = 'inferium.com' local PERSISTED_CONFIGS = '/data/inferium-configs' @@ -120,7 +120,7 @@ local function deleteConfig(message) return false end - if LOCAL_CONFIGS[harvesterId] then + if LOCAL_CONFIGS[tostring(harvesterId)] then saveConfigForComputer(harvesterId, nil) return true end