From 0905daa1ecb20d48f95ef8e56aa2bf297caaf0d2 Mon Sep 17 00:00:00 2001 From: casulit Date: Wed, 30 Oct 2024 08:53:11 +0800 Subject: [PATCH] refactor(config): Use client2 for querying Property and Listing --- config/deno-kv.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/deno-kv.ts b/config/deno-kv.ts index 9fc6b99..f915329 100644 --- a/config/deno-kv.ts +++ b/config/deno-kv.ts @@ -466,7 +466,7 @@ export async function listenQueue(kv: Deno.Kv) { throw error; } - property = await transaction.queryObject({ + property = await client2.queryObject({ args: [ lastCreatedPropertyId, rawProperty.floor_size, @@ -546,7 +546,7 @@ export async function listenQueue(kv: Deno.Kv) { const newListingId = lastCreatedListingId.rows[0].id + Math.floor(100000 + Math.random() * 900000); - const newListing = await transaction.queryObject({ + const newListing = await client2.queryObject({ args: [ newListingId, rawProperty.raw_title,