File tree 1 file changed +2
-2
lines changed
sdk/cosmosdb/cosmos/src/client/Item
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ export class Items {
211
211
// Generate random document id if the id is missing in the payload and
212
212
// options.disableAutomaticIdGeneration != true
213
213
if ( ( body . id === undefined || body . id === "" ) && ! options . disableAutomaticIdGeneration ) {
214
- body . id = Helper . generateGuidId ( ) ;
214
+ ( body as ItemDefinition ) . id = Helper . generateGuidId ( ) ;
215
215
}
216
216
217
217
const err = { } ;
@@ -268,7 +268,7 @@ export class Items {
268
268
// Generate random document id if the id is missing in the payload and
269
269
// options.disableAutomaticIdGeneration != true
270
270
if ( ( body . id === undefined || body . id === "" ) && ! options . disableAutomaticIdGeneration ) {
271
- body . id = Helper . generateGuidId ( ) ;
271
+ ( body as ItemDefinition ) . id = Helper . generateGuidId ( ) ;
272
272
}
273
273
274
274
const err = { } ;
You can’t perform that action at this time.
0 commit comments