aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/update-host.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/update-host.ts')
-rwxr-xr-xscripts/update-host.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/update-host.ts b/scripts/update-host.ts
index 5d81a8d74..c6eb9d533 100755
--- a/scripts/update-host.ts
+++ b/scripts/update-host.ts
@@ -115,9 +115,9 @@ async function run () {
115 115
116 console.log('Updating video and torrent files.') 116 console.log('Updating video and torrent files.')
117 117
118 const localVideos = await VideoModel.listLocal() 118 const ids = await VideoModel.listLocalIds()
119 for (const localVideo of localVideos) { 119 for (const id of ids) {
120 const video = await VideoModel.loadAndPopulateAccountAndServerAndTags(localVideo.id) 120 const video = await VideoModel.loadAndPopulateAccountAndServerAndTags(id)
121 121
122 console.log('Updating video ' + video.uuid) 122 console.log('Updating video ' + video.uuid)
123 123