diff --git a/server.ts b/server.ts index bc5695e..2549de4 100644 --- a/server.ts +++ b/server.ts @@ -37,7 +37,6 @@ app.get("/api/properties", async (c: Context) => { no_of_parking_spaces_max?: string; price_min?: string; price_max?: string; - ai_generated_description?: string; sort_by?: string; sort_order?: string; search?: string; @@ -209,11 +208,6 @@ app.get("/api/properties", async (c: Context) => { ); } - // Add AI generated description filter if value is 1 - if (query.ai_generated_description === "1") { - addWhereCondition(`p.ai_generated_description IS NOT NULL`); - } - // Validate and construct ORDER BY clause let orderByClause = ""; const validSortFields = ["id", "created_at", "price"];