diff --git a/libs/modules/src/azTable/az-table.interface.ts b/libs/modules/src/azTable/az-table.interface.ts index 6b7387e..4a80ed2 100644 --- a/libs/modules/src/azTable/az-table.interface.ts +++ b/libs/modules/src/azTable/az-table.interface.ts @@ -1,5 +1,4 @@ export interface TableOptions { accountName: string; accountKey: string; - tableName: string; } \ No newline at end of file diff --git a/libs/modules/src/azTable/az-table.service.ts b/libs/modules/src/azTable/az-table.service.ts index b73fc40..242ea95 100644 --- a/libs/modules/src/azTable/az-table.service.ts +++ b/libs/modules/src/azTable/az-table.service.ts @@ -10,9 +10,9 @@ export class TableService { private tablesOptions: TableOptions ) {} - async getTableClient(): Promise { + async getTableClient(tableName: string): Promise { const credential: AzureNamedKeyCredential = new AzureNamedKeyCredential(this.tablesOptions.accountName, this.tablesOptions.accountKey); - const tableClient: TableClient = new TableClient(`https://${this.tablesOptions.accountName}`, this.tablesOptions.tableName, credential); + const tableClient: TableClient = new TableClient(`https://${this.tablesOptions.accountName}.table.core.windows.net`, tableName, credential); return tableClient; } diff --git a/package.json b/package.json index 7b2e799..191ed49 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@noahspan/noahspan-modules", - "version": "0.3.7", + "version": "0.3.8", "description": "", "author": "", "license": "UNLICENSED",