Skip to content

Commit

Permalink
let ids = [];
Browse files Browse the repository at this point in the history
  • Loading branch information
martinheppner committed Oct 31, 2024
1 parent 5e82b83 commit e269a2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jobs/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ export async function fixTours(){
await knex.raw(`UPDATE tour SET search_column = to_tsvector( 'french', full_text ) WHERE text_lang ='fr';`);

// set ai_search_column
let ids = [];
try {
const id_result = await knex.raw(`SELECT id FROM tour WHERE ai_search_column IS NULL;`);
const ids = id_result.rows;
ids = id_result.rows;
} catch (error) {
console.error("Error getting empty ai_search_column:", error);
}
Expand Down

0 comments on commit e269a2f

Please sign in to comment.