Improve redundancy: add 'min_lifetime' configuration
[oweals/peertube.git] / server / lib / activitypub / process / process-undo.ts
index 73ca0a17c221e75a83e3f0539eeeba6644cc9a64..ff019cd8cff555a390885006fd02b19cea9329fd 100644 (file)
@@ -100,7 +100,7 @@ async function processUndoCacheFile (byActor: ActorModel, activity: ActivityUndo
 
   return sequelizeTypescript.transaction(async t => {
     const cacheFile = await VideoRedundancyModel.loadByUrl(cacheFileObject.id)
-    if (!cacheFile) throw new Error('Unknown video cache ' + cacheFile.url)
+    if (!cacheFile) throw new Error('Unknown video cache ' + cacheFileObject.id)
 
     if (cacheFile.actorId !== byActor.id) throw new Error('Cannot delete redundancy ' + cacheFile.url + ' of another actor.')