return sequelizeTypescript.transaction(async t => {
const cacheFile = await VideoRedundancyModel.loadByUrl(cacheFileObject.id)
- if (!cacheFile) throw new Error('Unknown video cache ' + cacheFileObject.id)
+ if (!cacheFile) {
+ logger.debug('Cannot undo unknown video cache %s.', cacheFileObject.id)
+ return
+ }
if (cacheFile.actorId !== byActor.id) throw new Error('Cannot delete redundancy ' + cacheFile.url + ' of another actor.')