diff --git a/src/helpers/helper.ts b/src/helpers/helper.ts index 58cd6a0..3a10caa 100644 --- a/src/helpers/helper.ts +++ b/src/helpers/helper.ts @@ -58,7 +58,7 @@ export const issueJWT = async ( client: OpenAPIClient, wallet: WalletService, ) => { - let auth = new Auth(client); + const auth = new Auth(client); const message = await auth.generateSignMessage(); const signatureDetails = await wallet.signMessage(message); diff --git a/src/index.ts b/src/index.ts index 7bb1a90..ba8dc71 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,6 +31,9 @@ class SDKFactory { baseUrl: url, }); + if (logging) { + } + client.use(AuthMiddleware({ environment, privateKey, wallet, client })); return client; diff --git a/src/modules/data-asset/data-asset.ts b/src/modules/data-asset/data-asset.ts index 827ec0d..ee4113e 100644 --- a/src/modules/data-asset/data-asset.ts +++ b/src/modules/data-asset/data-asset.ts @@ -390,7 +390,7 @@ export class DataAsset { throw new GTWError(error, response); } - return { file, fileName: 'name' }; + return { file, fileName: name }; } /** diff --git a/src/modules/data-model/data-model.ts b/src/modules/data-model/data-model.ts index 5a4fc13..9d2013c 100644 --- a/src/modules/data-model/data-model.ts +++ b/src/modules/data-model/data-model.ts @@ -1,6 +1,5 @@ import { MediaType } from 'openapi-typescript-helpers'; import { - Config, DataModelRequest, HelperPaginatedResponse, OpenAPIClient,