Migrates datasource datamodel to new class implementation

This commit is contained in:
Simone Mainardi 2021-01-06 11:54:45 +01:00
parent 75b66d82b9
commit 37c58f56de
10 changed files with 30 additions and 30 deletions

View file

@ -93,7 +93,7 @@ function datasource:deserialize(rest_response_data)
local when = os.time()
if data and data.rc == rest_utils.consts.success.ok.rc then
self.datamodel_instance = self.meta.datamodel:create(data.rsp.header)
self.datamodel_instance = self.meta.datamodel:new(data.rsp.header)
for _, row in ipairs(data.rsp.rows) do
self.datamodel_instance:appendRow(when, data.rsp.header, row)