aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-03 13:47:45 +0100
committerChocobozzz <me@florianbigard.com>2020-01-03 13:47:45 +0100
commit35f28e94c763370616d25d5820f4b9ef70cedca9 (patch)
tree7ade51d5e60a5856d74c5776dd62fcaaa3ae0858 /server/helpers
parent562724a1ed13fe93aba08ca1a0f8e029819e9f32 (diff)
downloadPeerTube-35f28e94c763370616d25d5820f4b9ef70cedca9.tar.gz
PeerTube-35f28e94c763370616d25d5820f4b9ef70cedca9.tar.zst
PeerTube-35f28e94c763370616d25d5820f4b9ef70cedca9.zip
Add infohash cache
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/utils.ts b/server/helpers/utils.ts
index ba07eaaf3..4c6f200f8 100644
--- a/server/helpers/utils.ts
+++ b/server/helpers/utils.ts
@@ -40,7 +40,7 @@ const getServerActor = memoizee(async function () {
40 actor.Account = application.Account 40 actor.Account = application.Account
41 41
42 return actor 42 return actor
43}) 43}, { promise: true })
44 44
45function generateVideoImportTmpPath (target: string | ParseTorrent) { 45function generateVideoImportTmpPath (target: string | ParseTorrent) {
46 const id = typeof target === 'string' ? target : target.infoHash 46 const id = typeof target === 'string' ? target : target.infoHash