diff options
author | Chocobozzz <me@florianbigard.com> | 2021-11-10 14:34:02 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-11-10 14:34:02 +0100 |
commit | 5cf027bdc46f1bf214c4cf26eee17ebda228004f (patch) | |
tree | 69695db464f3b775ddd5dd91dec71ac83f7b3b7b /shared/extra-utils/requests/requests.ts | |
parent | d78b51aa4ed74bd2e6598b771fcff6391d7d9a3e (diff) | |
download | PeerTube-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.ts | 1 |
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]) |