From 6c6148707083efc11a7975358617410cb5865f8b Mon Sep 17 00:00:00 2001 From: casulit Date: Wed, 30 Oct 2024 08:45:33 +0800 Subject: [PATCH] refactor(config): Remove unnecessary transaction begin, fix formatting --- config/deno-kv.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/deno-kv.ts b/config/deno-kv.ts index 95cce7d..5a39e29 100644 --- a/config/deno-kv.ts +++ b/config/deno-kv.ts @@ -129,8 +129,6 @@ export async function listenQueue(kv: Deno.Kv) { throw Error("Client not created"); } - await transaction.begin(); - const rawPropertiesCount = await client2.queryObject< { count: number } >({ @@ -439,10 +437,12 @@ export async function listenQueue(kv: Deno.Kv) { }); if (listingByTitle.rowCount && listingByTitle.rowCount > 0) { - console.info("Listing query by title already exists") + console.info("Listing query by title already exists"); return; } + await transaction.begin(); + let property; try {