diff --git a/dictation_server/src/gateways/blobstorage/blobstorage.service.ts b/dictation_server/src/gateways/blobstorage/blobstorage.service.ts index 4f81b5f..57dd908 100644 --- a/dictation_server/src/gateways/blobstorage/blobstorage.service.ts +++ b/dictation_server/src/gateways/blobstorage/blobstorage.service.ts @@ -51,14 +51,9 @@ export class BlobstorageService { this.configService.get('STORAGE_ACCOUNT_ENDPOINT_EU'), this.sharedKeyCredentialEU, ); - - const expireTime = Number( + this.sasTokenExpireHour = Number( this.configService.get('STORAGE_TOKEN_EXPIRE_TIME'), ); - if (Number.isNaN(expireTime)) { - throw new Error(`STORAGE_TOKEN_EXPIRE_TIME is invalid value NaN`); - } - this.sasTokenExpireHour = expireTime; } /**