feat(file): migration fix duplicate key issue while unlinkSync
Kotahi has the same stored_objects
keys for new manuscript versions which makes this migration to fail with the below error
error: Error while running migrations: ENOENT: no such file or directory, unlink '/home/node/app/temp/0ab1753fa46a.png'
error: Error: ENOENT: no such file or directory, unlink '/home/node/app/temp/0ab1753fa46a.png'
at Object.unlinkSync (node:fs:1767:3)
at /home/node/app/_migrations-149dWwFdmVmkwY/1698750314-add-full-quality-converted-object-to-storedobjects.js:99:16
at async Promise.all (index 188)
at async /home/node/app/_migrations-149dWwFdmVmkwY/1698750314-add-full-quality-converted-object-to-storedobjects.js:72:7
+ exec node ./startServer.js