Skip to content

Commit

Permalink
feat(server): Add project, agent, and owner fields to properties API
Browse files Browse the repository at this point in the history
  • Loading branch information
csulit committed Oct 30, 2024
1 parent 0284b7f commit 5a8bc85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/deno-kv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ export async function listenQueue(kv: Deno.Kv) {
continue;
}

// from here...
let property;

try {
Expand Down
3 changes: 3 additions & 0 deletions server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ app.get("/api/properties", async (c: Context) => {
p.outdoor_features,
p.ai_generated_description,
p.ai_generated_basic_features,
p.project_name AS property_project_name,
p.agent_name,
p.product_owner_name,
pt.type_name AS property_type_name,
lt.type_name AS listing_type_name,
wt.type_name AS warehouse_type_name,
Expand Down

0 comments on commit 5a8bc85

Please sign in to comment.