Skip to content

Commit

Permalink
refactor(server): remove ai_generated_description filter
Browse files Browse the repository at this point in the history
  • Loading branch information
csulit committed Oct 31, 2024
1 parent 343d2b2 commit 7e0aafb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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"];
Expand Down

0 comments on commit 7e0aafb

Please sign in to comment.