Skip to content

Commit

Permalink
refactor(config): Remove unnecessary transaction begin, fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
csulit committed Oct 30, 2024
1 parent c63210a commit 6c61487
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/deno-kv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
>({
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 6c61487

Please sign in to comment.