From 63240f4d1b5ae77dee74552f8f0be460f17b02d4 Mon Sep 17 00:00:00 2001 From: Ike Saunders Date: Mon, 15 Apr 2024 19:12:10 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9D=20remove=20unused=20knex=20transac?= =?UTF-8?q?tion=20typeguard=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/db.ts | 6 ------ 1 file changed, 6 deletions(-) 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,