Skip to content

Commit

Permalink
fix for nosql import/export
Browse files Browse the repository at this point in the history
  • Loading branch information
delchev committed Mar 6, 2024
1 parent 3fe343e commit 135dbae
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,8 @@ database.controller('DatabaseController', function ($scope, $http, messageHub) {
"action": function (data) {
let tree = $.jstree.reference(data.reference);
let node = tree.get_node(data.reference);
let topLevelSchemaNode = node.parents.find(parentId => tree.get_node(parentId).original.kind === 'schema');
let topLevelSchemaName = tree.get_text(topLevelSchemaNode);
let sqlCommand = topLevelSchemaName + "." + node.original.text;
let parentNodeName = tree.get_text(node.parent);
let sqlCommand = parentNodeName + "." + node.original.text;
messageHub.postMessage('database.data.export.artifact', sqlCommand);
}.bind(this)
};
Expand All @@ -515,9 +514,8 @@ database.controller('DatabaseController', function ($scope, $http, messageHub) {
"action": function (data) {
let tree = $.jstree.reference(data.reference);
let node = tree.get_node(data.reference);
let topLevelSchemaNode = node.parents.find(parentId => tree.get_node(parentId).original.kind === 'schema');
let topLevelSchemaName = tree.get_text(topLevelSchemaNode);
let sqlCommand = topLevelSchemaName + "." + node.original.text;
let parentNodeName = tree.get_text(node.parent);
let sqlCommand = parentNodeName + "." + node.original.text;
messageHub.postMessage('database.data.import.artifact', sqlCommand);
}.bind(this)
};
Expand Down

0 comments on commit 135dbae

Please sign in to comment.