mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 04:00:59 +00:00
build fix
This commit is contained in:
parent
df44e5f6e9
commit
3a068c37b5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user