fix(inferium-server): delete-config should work with a number id
This commit is contained in:
parent
dd79ecb941
commit
9e09ac85c3
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user