projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f6b6a5
)
Raw query to get video ids
author
Chocobozzz
<me@florianbigard.com>
Fri, 14 Sep 2018 09:09:34 +0000
(11:09 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Fri, 14 Sep 2018 09:09:34 +0000
(11:09 +0200)
server/models/video/video.ts
patch
|
blob
|
history
diff --git
a/server/models/video/video.ts
b/server/models/video/video.ts
index ef8be7c860b355e95f48a3cc2200b29fd89ee04b..23d1dedd686b07f02ee22597d4764e30af5a3359 100644
(file)
--- a/
server/models/video/video.ts
+++ b/
server/models/video/video.ts
@@
-221,6
+221,7
@@
type AvailableForListIDsOptions = {
},
[ ScopeNames.AVAILABLE_FOR_LIST_IDS ]: (options: AvailableForListIDsOptions) => {
const query: IFindOptions<VideoModel> = {
+ raw: true,
attributes: [ 'id' ],
where: {
id: {