From 3a068c37b5af0217dfe3971ed6829328fe32c6e2 Mon Sep 17 00:00:00 2001 From: "SPRINX0\\prochazka" Date: Mon, 4 Nov 2024 09:07:12 +0100 Subject: [PATCH] build fix --- packages/api/src/utility/loadModelTransform.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/api/src/utility/loadModelTransform.js b/packages/api/src/utility/loadModelTransform.js index fc2b568f..79c7cd76 100644 --- a/packages/api/src/utility/loadModelTransform.js +++ b/packages/api/src/utility/loadModelTransform.js @@ -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) {