Skip to content

Commit

Permalink
update Consistency level request change (Azure#21102)
Browse files Browse the repository at this point in the history
  • Loading branch information
sajeetharan authored Apr 7, 2022
1 parent 452047d commit a1e2767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/cosmosdb/cosmos/src/documents/DatabaseAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export class DatabaseAccount {
this.mediaLink = "/media/";
this.maxMediaStorageUsageInMB = headers[Constants.HttpHeaders.MaxMediaStorageUsageInMB];
this.currentMediaStorageUsageInMB = headers[Constants.HttpHeaders.CurrentMediaStorageUsageInMB];
this.consistencyPolicy = body.UserConsistencyPolicy
? (body.UserConsistencyPolicy.defaultConsistencyLevel as ConsistencyLevel)
this.consistencyPolicy = body.userConsistencyPolicy
? (body.userConsistencyPolicy.defaultConsistencyLevel as ConsistencyLevel)
: ConsistencyLevel.Session;
if (body[Constants.WritableLocations] && body.id !== "localhost") {
this.writableLocations = body[Constants.WritableLocations] as Location[];
Expand Down

0 comments on commit a1e2767

Please sign in to comment.