diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/models/video/video.ts | 4 | ||||
-rw-r--r-- | server/tests/api/check-params/video-channels.ts | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 0af70cadf..5d8089328 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -251,6 +251,10 @@ export enum ScopeNames { | |||
251 | attributes: [ 'host' ], | 251 | attributes: [ 'host' ], |
252 | model: () => ServerModel.unscoped(), | 252 | model: () => ServerModel.unscoped(), |
253 | required: false | 253 | required: false |
254 | }, | ||
255 | { | ||
256 | model: () => AvatarModel.unscoped(), | ||
257 | required: false | ||
254 | } | 258 | } |
255 | ] | 259 | ] |
256 | }, | 260 | }, |
diff --git a/server/tests/api/check-params/video-channels.ts b/server/tests/api/check-params/video-channels.ts index 7b05e5882..0980de73b 100644 --- a/server/tests/api/check-params/video-channels.ts +++ b/server/tests/api/check-params/video-channels.ts | |||
@@ -14,7 +14,8 @@ import { | |||
14 | killallServers, | 14 | killallServers, |
15 | makeGetRequest, | 15 | makeGetRequest, |
16 | makePostBodyRequest, | 16 | makePostBodyRequest, |
17 | makePutBodyRequest, makeUploadRequest, | 17 | makePutBodyRequest, |
18 | makeUploadRequest, | ||
18 | runServer, | 19 | runServer, |
19 | ServerInfo, | 20 | ServerInfo, |
20 | setAccessTokensToServers, | 21 | setAccessTokensToServers, |
@@ -22,7 +23,7 @@ import { | |||
22 | } from '../../utils' | 23 | } from '../../utils' |
23 | import { checkBadCountPagination, checkBadSortPagination, checkBadStartPagination } from '../../utils/requests/check-api-params' | 24 | import { checkBadCountPagination, checkBadSortPagination, checkBadStartPagination } from '../../utils/requests/check-api-params' |
24 | import { User } from '../../../../shared/models/users' | 25 | import { User } from '../../../../shared/models/users' |
25 | import { join } from "path" | 26 | import { join } from 'path' |
26 | 27 | ||
27 | const expect = chai.expect | 28 | const expect = chai.expect |
28 | 29 | ||