projects
/
oweals
/
peertube.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Stronger model typings
[oweals/peertube.git]
/
server
/
middlewares
/
validators
/
videos
/
video-shares.ts
diff --git
a/server/middlewares/validators/videos/video-shares.ts
b/server/middlewares/validators/videos/video-shares.ts
index ace62be5cade3a1171e6043cd8cad653c356bd05..20fc962438f591f97c8bb07e62f236b67c6bc44a 100644
(file)
--- a/
server/middlewares/validators/videos/video-shares.ts
+++ b/
server/middlewares/validators/videos/video-shares.ts
@@
-16,7
+16,7
@@
const videosShareValidator = [
if (areValidationErrors(req, res)) return
if (!await doesVideoExist(req.params.id, res)) return
- const video = res.locals.video
+ const video = res.locals.video
All
const share = await VideoShareModel.load(req.params.actorId, video.id)
if (!share) {