- Moved to examples - Removed unnecessary dependencies - Improved the readme with instructions for writing the db adapter
15 lines
499 B
TypeScript
15 lines
499 B
TypeScript
import type { RollbackTransaction } from 'payload/database'
|
|
|
|
/**
|
|
* Rolls back a transaction identified by its ID.
|
|
*
|
|
* @param {string} id - The ID of the transaction to rollback.
|
|
* @returns {Promise<void>}
|
|
*
|
|
* This function is optional and can be implemented as needed for database adapters that support transactions.
|
|
*/
|
|
export const rollbackTransaction: RollbackTransaction = async function rollbackTransaction(
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
id = '',
|
|
) {}
|