Skip to content

Commit

Permalink
refactor(config): Use client2 for querying Property and Listing
Browse files Browse the repository at this point in the history
  • Loading branch information
csulit committed Oct 30, 2024
1 parent 2d0673b commit 0905daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/deno-kv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export async function listenQueue(kv: Deno.Kv) {
throw error;
}

property = await transaction.queryObject<Property>({
property = await client2.queryObject<Property>({
args: [
lastCreatedPropertyId,
rawProperty.floor_size,
Expand Down Expand Up @@ -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<Listing>({
const newListing = await client2.queryObject<Listing>({
args: [
newListingId,
rawProperty.raw_title,
Expand Down

0 comments on commit 0905daa

Please sign in to comment.