Skip to content

Commit

Permalink
feat(config): Filter properties by type_id in query for AI descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
csulit committed Oct 25, 2024
1 parent 46618e7 commit 1929f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/deno-kv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ export async function listenQueue(kv: Deno.Kv) {

try {
const property = await client_1.queryObject(
`SELECT * FROM Property WHERE ai_generated_description IS NULL ORDER BY created_at DESC LIMIT 10`
`SELECT * FROM Property WHERE ai_generated_description IS NULL AND property_type_id = 1 ORDER BY created_at DESC LIMIT 10`
);

if (property.rowCount && property.rowCount > 0) {
Expand Down

0 comments on commit 1929f39

Please sign in to comment.