feat: add Idempotency to Postgres (#7750)
This commit is contained in:
@@ -143,7 +143,7 @@ export function getLiveQueryController(options: ParseServerOptions): LiveQueryCo
|
||||
}
|
||||
|
||||
export function getDatabaseController(options: ParseServerOptions): DatabaseController {
|
||||
const { databaseURI, collectionPrefix, databaseOptions } = options;
|
||||
const { databaseURI, collectionPrefix, databaseOptions, idempotencyOptions } = options;
|
||||
let { databaseAdapter } = options;
|
||||
if (
|
||||
(databaseOptions ||
|
||||
@@ -157,7 +157,7 @@ export function getDatabaseController(options: ParseServerOptions): DatabaseCont
|
||||
} else {
|
||||
databaseAdapter = loadAdapter(databaseAdapter);
|
||||
}
|
||||
return new DatabaseController(databaseAdapter);
|
||||
return new DatabaseController(databaseAdapter, idempotencyOptions);
|
||||
}
|
||||
|
||||
export function getHooksController(
|
||||
|
||||
Reference in New Issue
Block a user