fix: add JSDoc type annotation for MySQL orphan ID mapping

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Fredrik Adelöw <freben@spotify.com>
This commit is contained in:
Fredrik Adelöw
2026-03-11 11:06:57 +01:00
parent ffe5febfd6
commit 42a42d5625
@@ -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();
}