]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/prune-storage.ts
Fix control bar alignment
[github/Chocobozzz/PeerTube.git] / scripts / prune-storage.ts
index 788d97997d2c1eadc971e1e6638c7ed912be386d..dcb1fcf9024db420504126917cedcecee0183e70 100755 (executable)
@@ -95,7 +95,7 @@ function doesVideoExist (keepOnlyOwned: boolean) {
 
 function doesThumbnailExist (keepOnlyOwned: boolean, type: ThumbnailType) {
   return async (file: string) => {
-    const thumbnail = await ThumbnailModel.loadWithVideoByName(file, type)
+    const thumbnail = await ThumbnailModel.loadByFilename(file, type)
     if (!thumbnail) return false
 
     if (keepOnlyOwned) {