Skip to content

Commit

Permalink
Merge pull request #1875 from kuzudb/fix-nodejs-schema-parsing
Browse files Browse the repository at this point in the history
Fix schema properties parsing for Node.js API
  • Loading branch information
mewim committed Jul 31, 2023
2 parents 9be5db4 + 01db4cd commit a1821ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/nodejs_api/src_js/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class Connection {
}
const lineParts = line.split(" ");
const name = lineParts[0];
const type = lineParts[1];
const type = lineParts.slice(1).join(" ");
results.push({ name, type, isPrimaryKey });
});
return results;
Expand Down Expand Up @@ -346,7 +346,7 @@ class Connection {
}
const lineParts = line.split(" ");
const name = lineParts[0];
const type = lineParts[1];
const type = lineParts.slice(1).join(" ");
result.props.push({ name, type });
});
return result;
Expand Down

0 comments on commit a1821ed

Please sign in to comment.