aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/accounts.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-25 10:21:38 +0200
committerChocobozzz <me@florianbigard.com>2018-04-25 13:50:48 +0200
commit6b738c7a31591a83fdcd9c78b6b1f98e543c378b (patch)
treedb771d0e99e9ff27570885fe2a6f58a7c1948fbc /server/controllers/api/accounts.ts
parent48dce1c90dff4e90a4bcffefaecf157336cf904b (diff)
downloadPeerTube-6b738c7a31591a83fdcd9c78b6b1f98e543c378b.tar.gz
PeerTube-6b738c7a31591a83fdcd9c78b6b1f98e543c378b.tar.zst
PeerTube-6b738c7a31591a83fdcd9c78b6b1f98e543c378b.zip
Video channel API routes refractor
Diffstat (limited to 'server/controllers/api/accounts.ts')
-rw-r--r--server/controllers/api/accounts.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/accounts.ts b/server/controllers/api/accounts.ts
index 04c5897c5..85987c912 100644
--- a/server/controllers/api/accounts.ts
+++ b/server/controllers/api/accounts.ts
@@ -126,7 +126,8 @@ async function addVideoChannelRetryWrapper (req: express.Request, res: express.R
126 const videoChannel = await retryTransactionWrapper(addVideoChannel, options) 126 const videoChannel = await retryTransactionWrapper(addVideoChannel, options)
127 return res.json({ 127 return res.json({
128 videoChannel: { 128 videoChannel: {
129 id: videoChannel.id 129 id: videoChannel.id,
130 uuid: videoChannel.Actor.uuid
130 } 131 }
131 }).end() 132 }).end()
132} 133}
@@ -233,7 +234,6 @@ async function listVideoChannelVideos (req: express.Request, res: express.Respon
233 return res.json(getFormattedObjects(resultList.data, resultList.total)) 234 return res.json(getFormattedObjects(resultList.data, resultList.total))
234} 235}
235 236
236
237async function listAccountVideos (req: express.Request, res: express.Response, next: express.NextFunction) { 237async function listAccountVideos (req: express.Request, res: express.Response, next: express.NextFunction) {
238 const account: AccountModel = res.locals.account 238 const account: AccountModel = res.locals.account
239 239