Skip to content

Commit ffd1205

Browse files
committed
refactor(server): streamline address field and add image logging
1 parent 151e72b commit ffd1205

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

config/deno-kv.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,14 @@ export async function listenQueue(kv: Deno.Kv) {
189189
});
190190

191191
console.log("Listing updated");
192+
console.log(
193+
"Images updated ",
194+
JSON.stringify(
195+
images.map((image) => image.src),
196+
null,
197+
2
198+
)
199+
);
192200

193201
await transaction.commit();
194202

server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ app.get("/", async (c: Context) => {
1616
l.project_name,
1717
l.description,
1818
l.is_scraped,
19-
l.address AS listing_address,
2019
l.price,
2120
l.price_formatted,
2221
p.id AS property_id,
@@ -41,7 +40,7 @@ app.get("/", async (c: Context) => {
4140
p.ai_generated_basic_features,
4241
pt.type_name AS property_type_name,
4342
wt.type_name AS warehouse_type_name,
44-
p.address AS property_address,
43+
l.address AS listing_address,
4544
rg.region AS listing_region_name,
4645
ct.city AS listing_city_name,
4746
ar.area AS listing_area_name,

0 commit comments

Comments
 (0)