aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/controllers/api/videos/index.ts2
-rw-r--r--server/models/video/video.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts
index 244099015..b4cd67158 100644
--- a/server/controllers/api/videos/index.ts
+++ b/server/controllers/api/videos/index.ts
@@ -418,7 +418,7 @@ async function removeVideo (req: express.Request, res: express.Response) {
418} 418}
419 419
420async function searchVideos (req: express.Request, res: express.Response, next: express.NextFunction) { 420async function searchVideos (req: express.Request, res: express.Response, next: express.NextFunction) {
421 const resultList = await VideoModel.searchAndPopulateAccountAndServerAndTags( 421 const resultList = await VideoModel.searchAndPopulateAccountAndServer(
422 req.query.search, 422 req.query.search,
423 req.query.start, 423 req.query.start,
424 req.query.count, 424 req.query.count,
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index ffb9725b4..a7923b477 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -696,7 +696,7 @@ export class VideoModel extends Model<VideoModel> {
696 }) 696 })
697 } 697 }
698 698
699 static async searchAndPopulateAccountAndServerAndTags (value: string, start: number, count: number, sort: string) { 699 static async searchAndPopulateAccountAndServer (value: string, start: number, count: number, sort: string) {
700 const query: IFindOptions<VideoModel> = { 700 const query: IFindOptions<VideoModel> = {
701 offset: start, 701 offset: start,
702 limit: count, 702 limit: count,