Skip to content

Commit

Permalink
🐝 remove unused knex transaction typeguard function
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesau committed Apr 15, 2024
1 parent 41f08b2 commit 63240f4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions db/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@ export enum TransactionCloseMode {
KeepOpen,
}

export function checkIsReadWriteTransaction(
trx: Knex.Transaction<any, any[]>
): trx is KnexReadWriteTransaction {
return __read_capability in trx && __write_capability in trx
}

async function knexTransaction<T, KT>(
transactionFn: (trx: KT) => Promise<T>,
closeConnection: TransactionCloseMode,
Expand Down

0 comments on commit 63240f4

Please sign in to comment.