]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/users.ts
Add import.video.torrent configuration
[github/Chocobozzz/PeerTube.git] / server / controllers / api / users.ts
index 879ba3f917b5501a4d58f836afe74a96f70f7dd6..36bf0e0fe49713249f95ee5a399f6f80e0d7734f 100644 (file)
@@ -196,7 +196,7 @@ async function getUserVideos (req: express.Request, res: express.Response, next:
 async function getUserVideoImports (req: express.Request, res: express.Response, next: express.NextFunction) {
   const user = res.locals.oauth.token.User as UserModel
   const resultList = await VideoImportModel.listUserVideoImportsForApi(
-    user.Account.id,
+    user.id,
     req.query.start as number,
     req.query.count as number,
     req.query.sort