Changed 'techdocs.publisher.azureBlobStorage.azuriteConnectionString' to 'techdocs.publisher.azureBlobStorage.connectionString'

Signed-off-by: titanventura <aswath7862001@gmail.com>
This commit is contained in:
titanventura
2023-07-29 15:46:31 +05:30
parent f6e889a90f
commit 7284a2e68b
3 changed files with 67 additions and 8 deletions
@@ -83,13 +83,16 @@ export class AzureBlobStoragePublish implements PublisherBase {
'techdocs.legacyUseCaseSensitiveTripletPaths',
) || false;
// Give more priority for azurite, if configured, return the AzureBlobStoragePublish object here itself
const azuriteConnString = config.getOptionalString(
'techdocs.publisher.azureBlobStorage.azuriteConnectionString',
);
if (azuriteConnString) {
// Give more priority for connectionString, if configured, return the AzureBlobStoragePublish object here itself
const connectionStringKey =
'techdocs.publisher.azureBlobStorage.connectionString';
const connectionString = config.getOptionalString(connectionStringKey);
if (connectionString) {
logger.info(
`using ${connectionStringKey} string to create BlobServiceClient`,
);
const storageClient =
BlobServiceClient.fromConnectionString(azuriteConnString);
BlobServiceClient.fromConnectionString(connectionString);
return new AzureBlobStoragePublish({
storageClient: storageClient,
containerName: containerName,