diff --git a/db/db.ts b/db/db.ts index bdc61e20072..84953774e61 100644 --- a/db/db.ts +++ b/db/db.ts @@ -73,12 +73,6 @@ export enum TransactionCloseMode { KeepOpen, } -export function checkIsReadWriteTransaction( - trx: Knex.Transaction -): trx is KnexReadWriteTransaction { - return __read_capability in trx && __write_capability in trx -} - async function knexTransaction( transactionFn: (trx: KT) => Promise, closeConnection: TransactionCloseMode,