]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/search.ts
cleanup and remove paramSubs
[github/Chocobozzz/PeerTube.git] / server / controllers / api / search.ts
index a8a6cfb0821fb185602c0dd27c4b0783ffb3e13d..534305ba633b9eb68c457e1640dc135b29362c63 100644 (file)
@@ -119,7 +119,7 @@ async function searchVideosDB (query: VideosSearchQuery, res: express.Response)
     includeLocalVideos: true,
     nsfw: buildNSFWFilter(res, query.nsfw),
     filter: query.filter,
-    userId: res.locals.oauth ? res.locals.oauth.token.User.id : undefined
+    user: res.locals.oauth ? res.locals.oauth.token.User : undefined
   })
   const resultList = await VideoModel.searchAndPopulateAccountAndServer(options)