mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-06-14 03:25:25 -04:00
[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:
committed by
Bartosz Cichocki
parent
ea5492fa42
commit
bb0ef540b7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user