mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 04:26:01 +00:00
excel import fix
This commit is contained in:
@@ -1,9 +1,3 @@
|
||||
let dbgateEnv;
|
||||
|
||||
function initialize(dbgateEnv) {
|
||||
dbgateEnv = dbgateEnv;
|
||||
}
|
||||
|
||||
const fileFormat = {
|
||||
packageName: 'dbgate-plugin-excel',
|
||||
// file format identifier
|
||||
@@ -17,8 +11,8 @@ const fileFormat = {
|
||||
// function name from backend, which contains writer factory, postfixed by package name
|
||||
writerFunc: 'writer@dbgate-plugin-excel',
|
||||
|
||||
addFileToSourceList: async ({ fileName }, newSources, newValues) => {
|
||||
const resp = await dbgateEnv.apiCall('plugins/command', {
|
||||
addFileToSourceList: async ({ fileName }, newSources, newValues, apiCall) => {
|
||||
const resp = await apiCall('plugins/command', {
|
||||
command: 'analyse',
|
||||
packageName: 'dbgate-plugin-excel',
|
||||
args: {
|
||||
@@ -85,5 +79,4 @@ export default {
|
||||
}),
|
||||
},
|
||||
],
|
||||
initialize,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user