Skip to content

Commit a1e2767

Browse files
authored
update Consistency level request change (Azure#21102)
1 parent 452047d commit a1e2767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/cosmosdb/cosmos/src/documents/DatabaseAccount.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ export class DatabaseAccount {
7474
this.mediaLink = "/media/";
7575
this.maxMediaStorageUsageInMB = headers[Constants.HttpHeaders.MaxMediaStorageUsageInMB];
7676
this.currentMediaStorageUsageInMB = headers[Constants.HttpHeaders.CurrentMediaStorageUsageInMB];
77-
this.consistencyPolicy = body.UserConsistencyPolicy
78-
? (body.UserConsistencyPolicy.defaultConsistencyLevel as ConsistencyLevel)
77+
this.consistencyPolicy = body.userConsistencyPolicy
78+
? (body.userConsistencyPolicy.defaultConsistencyLevel as ConsistencyLevel)
7979
: ConsistencyLevel.Session;
8080
if (body[Constants.WritableLocations] && body.id !== "localhost") {
8181
this.writableLocations = body[Constants.WritableLocations] as Location[];

0 commit comments

Comments
 (0)