aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-12-18 09:31:09 +0100
committerChocobozzz <me@florianbigard.com>2018-12-18 11:35:51 +0100
commit80bfd33c0bf910e2cfdd3270b14ba9eddd90e2e8 (patch)
tree80cd14e2f503db64ebec5fcfbb94ce5db25f46c9 /server
parent8b9a525a180cc9f3a98c334cc052dcfc8f36dcd4 (diff)
downloadPeerTube-80bfd33c0bf910e2cfdd3270b14ba9eddd90e2e8.tar.gz
PeerTube-80bfd33c0bf910e2cfdd3270b14ba9eddd90e2e8.tar.zst
PeerTube-80bfd33c0bf910e2cfdd3270b14ba9eddd90e2e8.zip
Add history page on client
Diffstat (limited to 'server')
-rw-r--r--server/models/video/video.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 199ea9ea4..3f282580c 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -425,6 +425,11 @@ type AvailableForListIDsOptions = {
425 userId: options.historyOfUser.id 425 userId: options.historyOfUser.id
426 } 426 }
427 }) 427 })
428
429 // Even if the relation is n:m, we know that a user only have 0..1 video history
430 // So we won't have multiple rows for the same video
431 // Without this, we would not be able to sort on "updatedAt" column of UserVideoHistoryModel
432 query.subQuery = false
428 } 433 }
429 434
430 return query 435 return query