mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-19 12:34:31 -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
|
||||
|
||||
@@ -79,7 +79,7 @@ function helpers.copy_file(filename_in, filename_out)
|
||||
fd_out:close()
|
||||
end
|
||||
|
||||
--- Remove directory and its content
|
||||
--- Remove directory and its contents
|
||||
-- @function rmdir
|
||||
-- @param dir directory to remove
|
||||
function helpers.rmdir(dir)
|
||||
|
||||
Reference in New Issue
Block a user