From 1929f3942480154e9eea972b57457d6077165b3c Mon Sep 17 00:00:00 2001 From: casulit Date: Fri, 25 Oct 2024 09:56:20 +0800 Subject: [PATCH] feat(config): Filter properties by type_id in query for AI descriptions --- config/deno-kv.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/deno-kv.ts b/config/deno-kv.ts index f5f510a..9e26d09 100644 --- a/config/deno-kv.ts +++ b/config/deno-kv.ts @@ -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) {