File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -361,18 +361,15 @@ const relationSchema = {
361
361
362
362
class DatabaseController {
363
363
adapter : StorageAdapter ;
364
- idempotencyOptions : any ;
365
364
schemaCache : any ;
366
365
schemaPromise : ?Promise < SchemaController . SchemaController > ;
367
366
_transactionalSession : ?any ;
368
367
options : ParseServerOptions ;
369
368
370
369
constructor ( adapter : StorageAdapter , options : ParseServerOptions ) {
371
370
this . adapter = adapter ;
372
- this . idempotencyOptions = options . idempotencyOptions || { } ;
373
- // We don't want a mutable this.schema, because then you could have
374
- // one request that uses different schemas for different parts of
375
- // it. Instead, use loadSchema to get a schema.
371
+ // Prevent mutable this.schema, otherwise one request could use
372
+ // multiple schemas, so instead use loadSchema to get a schema.
376
373
this . schemaPromise = null ;
377
374
this . _transactionalSession = null ;
378
375
this . options = options ;
@@ -1737,7 +1734,7 @@ class DatabaseController {
1737
1734
ttl : 0 ,
1738
1735
} ;
1739
1736
} else if ( isPostgresAdapter ) {
1740
- options = this . idempotencyOptions ;
1737
+ options = ( this . options || { } ) . idempotencyOptions || { } ;
1741
1738
options . setIdempotencyFunction = true ;
1742
1739
}
1743
1740
await this . adapter
You can’t perform that action at this time.
0 commit comments