aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/requests/requests.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-10 14:34:02 +0100
committerChocobozzz <me@florianbigard.com>2021-11-10 14:34:02 +0100
commit5cf027bdc46f1bf214c4cf26eee17ebda228004f (patch)
tree69695db464f3b775ddd5dd91dec71ac83f7b3b7b /shared/extra-utils/requests/requests.ts
parentd78b51aa4ed74bd2e6598b771fcff6391d7d9a3e (diff)
downloadPeerTube-5cf027bdc46f1bf214c4cf26eee17ebda228004f.tar.gz
PeerTube-5cf027bdc46f1bf214c4cf26eee17ebda228004f.tar.zst
PeerTube-5cf027bdc46f1bf214c4cf26eee17ebda228004f.zip
Force video updatedAt update on update
Diffstat (limited to 'shared/extra-utils/requests/requests.ts')
-rw-r--r--shared/extra-utils/requests/requests.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared/extra-utils/requests/requests.ts b/shared/extra-utils/requests/requests.ts
index 501e0b374..b6b9024ed 100644
--- a/shared/extra-utils/requests/requests.ts
+++ b/shared/extra-utils/requests/requests.ts
@@ -85,6 +85,7 @@ function makeUploadRequest (options: CommonRequestParams & {
85 85
86 Object.keys(options.attaches || {}).forEach(attach => { 86 Object.keys(options.attaches || {}).forEach(attach => {
87 const value = options.attaches[attach] 87 const value = options.attaches[attach]
88 if (!value) return
88 89
89 if (Array.isArray(value)) { 90 if (Array.isArray(value)) {
90 req.attach(attach, buildAbsoluteFixturePath(value[0]), value[1]) 91 req.attach(attach, buildAbsoluteFixturePath(value[0]), value[1])