[MOS-803] DeviceInfo endpoint update

* Added some changes to the DeviceInfo endpoint
* Updated relevant code accordingly
* Removed unneeded paths definitions
* Minor bug fixes
This commit is contained in:
Mateusz Piesta
2022-11-30 13:41:42 +01:00
committed by Bartosz Cichocki
parent ea5492fa42
commit bb0ef540b7
13 changed files with 75 additions and 78 deletions

View File

@@ -56,7 +56,7 @@ local function read_db_version(file)
end
local function db_migrate_up(db_path, scripts, target_version)
current_version = read_db_version(db_path)
local current_version = read_db_version(db_path)
if current_version == target_version then
return migration.retcode.ALREADY_UP_TO_DATE
@@ -73,7 +73,7 @@ local function db_migrate_up(db_path, scripts, target_version)
end
local function db_migrate_down(db_path, scripts, target_version)
current_version = read_db_version(db_path)
local current_version = read_db_version(db_path)
if current_version == target_version then
return migration.retcode.ALREADY_UP_TO_DATE