diff --git a/bin/migrate.js b/bin/migrate.js index eb08eefc4a7002e57430bd1e515424304c64602b..684e112632e96d15e6da760f26c9bed86306b205 100644 --- a/bin/migrate.js +++ b/bin/migrate.js @@ -59,6 +59,10 @@ const proc = async function () { anno.target.id = `${newPrefix}annotations/${anno.target.id}` console.log('updating video target to', anno.target.id) } + if (anno.target.type === 'Annotation' && typeof anno.target.id === 'string' && uuid.isUUID(anno.target.id)) { + anno.target.id = `${newPrefix}annotations/${anno.target.id}` + console.log('updating annotation target to', anno.target.id) + } if (anno.target.type === 'Timeline' && typeof anno.target.id === 'string' && uuid.isUUID(anno.target.id)) { anno.target.id = `${newPrefix}maps/${anno.target.id}` console.log('updating timeline target to', anno.target.id)