From 9ba95b085b3e42c29a6124b91a774f01cd483950 Mon Sep 17 00:00:00 2001 From: James Li Date: Fri, 31 May 2024 11:58:42 -0700 Subject: [PATCH] Minor bug for custom GraphQL queries --- package-lock.json | 4 ++-- package.json | 2 +- src/graphql/Resource.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 47b454e..5984b0e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dimo-network/dimo-node-sdk", - "version": "1.1.4", + "version": "1.1.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dimo-network/dimo-node-sdk", - "version": "1.1.4", + "version": "1.1.6", "license": "Apache-2.0", "dependencies": { "axios": "^1.6.7", diff --git a/package.json b/package.json index 2098763..0aa4e2f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dimo-network/dimo-node-sdk", - "version": "1.1.5", + "version": "1.1.6", "description": "DIMO SDK for JavaScript", "main": "dist/index.js", "author": "James Li", diff --git a/src/graphql/Resource.ts b/src/graphql/Resource.ts index c58067c..a73b955 100644 --- a/src/graphql/Resource.ts +++ b/src/graphql/Resource.ts @@ -34,7 +34,7 @@ export class Resource { Object.keys(resources).forEach(key => { this[key] = (params: any = {}) => CustomQuery( resources, // Setup the endpoint resources - this.api[this.resourceName], // Setup the base URL + this.api, // Setup the base URL params, // Pass through the params ); });