diff --git a/plugins/catalog-backend/migrations/20260214000000_search_fk_final_entities.js b/plugins/catalog-backend/migrations/20260214000000_search_fk_final_entities.js index 1b483268b0..9c90567dfc 100644 --- a/plugins/catalog-backend/migrations/20260214000000_search_fk_final_entities.js +++ b/plugins/catalog-backend/migrations/20260214000000_search_fk_final_entities.js @@ -82,7 +82,9 @@ exports.up = async function up(knex) { if (orphanIds.length === 0) { break; } - const ids = orphanIds.map(r => r.entity_id); + const ids = orphanIds.map( + (/** @type {{ entity_id: string }} */ r) => r.entity_id, + ); await knex('search').whereIn('entity_id', ids).delete(); } @@ -165,7 +167,9 @@ exports.down = async function down(knex) { if (orphanIds.length === 0) { break; } - const ids = orphanIds.map(r => r.entity_id); + const ids = orphanIds.map( + (/** @type {{ entity_id: string }} */ r) => r.entity_id, + ); await knex('search').whereIn('entity_id', ids).delete(); }