build fix

This commit is contained in:
SPRINX0\prochazka 2024-11-04 09:07:12 +01:00
parent df44e5f6e9
commit 3a068c37b5

View File

@ -7,10 +7,9 @@ const { getLogger, extractErrorLogData } = require('dbgate-tools');
const logger = getLogger('loadModelTransform');
function modelTransformFromJson(json) {
const { transform, arguments } = json;
if (!dbgateApi[transform]) return null;
const creator = dbgateApi[transform];
return creator(...arguments);
if (!dbgateApi[json.transform]) return null;
const creator = dbgateApi[json.transform];
return creator(...json.arguments);
}
async function loadModelTransform(file) {