Skip to content

Commit 9e8ccca

Browse files
committedJan 25, 2024
Fixing logs issues
1 parent 663b898 commit 9e8ccca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@useorbis/db-sdk",
3-
"version": "0.0.8-alpha",
3+
"version": "0.0.9-alpha",
44
"description": "Orbis' Typescript SDK for building open-data experiences.",
55
"keywords": [
66
"web3",

‎src/querybuilder/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ export class QueryBuilder {
8585
if(this.isSelectStatement(query)) {
8686
let modelId;
8787
const tableName = (query as any)._single.table; // Get the table name from the query
88-
88+
console.log("tableName:", tableName);
8989
// Check if developer used directly a model id or a readable table name
9090
if(tableName.startsWith("kjzl6")) {
9191
modelId = tableName;
9292
} else {
9393
// Get the model ID mapped to this table name in instance settings
9494
modelId = this.#orbis.node.getTableModelId(tableName);
95-
console.log("modelId retrieved from getTableModelId is:", tableName);
95+
console.log("modelId retrieved from getTableModelId is:", modelId);
9696

9797
// Force retry to load node's metadata to retrieve latest mapping and try again
9898
if(!modelId) {

0 commit comments

Comments
 (0)