Fixed bug in fetching 'index transformation progress' header (#330)

* bug fix

* fixed formatting errors
This commit is contained in:
Srinath Narayanan 2020-11-24 10:32:18 -08:00 committed by GitHub
parent 9cbf632577
commit 28899f63d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ export async function getIndexTransformationProgress(databaseId: string, collect
const response = await client()
.database(databaseId)
.container(collectionId)
.read();
.read({ populateQuotaInfo: true });
indexTransformationPercentage = parseInt(
response.headers[Constants.HttpHeaders.collectionIndexTransformationProgress] as string