Skip to content

Commit

Permalink
refactor(server): streamline address field and add image logging
Browse files Browse the repository at this point in the history
  • Loading branch information
csulit committed Oct 18, 2024
1 parent 151e72b commit ffd1205
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 8 additions & 0 deletions config/deno-kv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@ export async function listenQueue(kv: Deno.Kv) {
});

console.log("Listing updated");
console.log(
"Images updated ",
JSON.stringify(
images.map((image) => image.src),
null,
2
)
);

await transaction.commit();

Expand Down
3 changes: 1 addition & 2 deletions server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ app.get("/", async (c: Context) => {
l.project_name,
l.description,
l.is_scraped,
l.address AS listing_address,
l.price,
l.price_formatted,
p.id AS property_id,
Expand All @@ -41,7 +40,7 @@ app.get("/", async (c: Context) => {
p.ai_generated_basic_features,
pt.type_name AS property_type_name,
wt.type_name AS warehouse_type_name,
p.address AS property_address,
l.address AS listing_address,
rg.region AS listing_region_name,
ct.city AS listing_city_name,
ar.area AS listing_area_name,
Expand Down

0 comments on commit ffd1205

Please sign in to comment.