File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -365,14 +365,16 @@ class DatabaseController {
365
365
schemaPromise : ?Promise < SchemaController . SchemaController > ;
366
366
_transactionalSession : ?any ;
367
367
options : ParseServerOptions ;
368
+ idempotencyOptions : any ;
368
369
369
370
constructor ( adapter : StorageAdapter , options : ParseServerOptions ) {
370
371
this . adapter = adapter ;
372
+ this . options = options || { } ;
373
+ this . idempotencyOptions = options . idempotencyOptions || { } ;
371
374
// Prevent mutable this.schema, otherwise one request could use
372
375
// multiple schemas, so instead use loadSchema to get a schema.
373
376
this . schemaPromise = null ;
374
377
this . _transactionalSession = null ;
375
- this . options = options ;
376
378
}
377
379
378
380
collectionExists ( className : string ) : Promise < boolean > {
@@ -1734,7 +1736,7 @@ class DatabaseController {
1734
1736
ttl : 0 ,
1735
1737
} ;
1736
1738
} else if ( isPostgresAdapter ) {
1737
- options = ( this . options || { } ) . idempotencyOptions || { } ;
1739
+ options = this . idempotencyOptions ;
1738
1740
options . setIdempotencyFunction = true ;
1739
1741
}
1740
1742
await this . adapter
You can’t perform that action at this time.
0 commit comments