fix(inferium-server): delete-config should work with a number id

This commit is contained in:
Guillaume ARM 2024-05-22 21:35:41 +02:00
parent dd79ecb941
commit 9e09ac85c3

View File

@ -3,7 +3,7 @@ local utils = require('libs/utils')
local inferium = require('config/inferium') local inferium = require('config/inferium')
local DEFAULT_HARVESTER_NAME = 'harvester' local DEFAULT_HARVESTER_NAME = 'harvester'
local VERSION = "2.0.1" local VERSION = "2.0.2"
local INFERIUM_SERVER = 'inferium.com' local INFERIUM_SERVER = 'inferium.com'
local PERSISTED_CONFIGS = '/data/inferium-configs' local PERSISTED_CONFIGS = '/data/inferium-configs'
@ -120,7 +120,7 @@ local function deleteConfig(message)
return false return false
end end
if LOCAL_CONFIGS[harvesterId] then if LOCAL_CONFIGS[tostring(harvesterId)] then
saveConfigForComputer(harvesterId, nil) saveConfigForComputer(harvesterId, nil)
return true return true
end end