1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Add tests to handle down server

This commit is contained in:
Chocobozzz 2018-01-11 11:40:18 +01:00
parent 85cd9bde5a
commit 7bc2917145
No known key found for this signature in database
GPG key ID: 583A612D890159BE
12 changed files with 161 additions and 34 deletions

View file

@ -147,8 +147,8 @@ async function processCreateView (byActor: ActorModel, activity: ActivityCreate)
const { video } = await getOrCreateAccountAndVideoAndChannel(view.object)
const account = await ActorModel.loadByUrl(view.actor)
if (!account) throw new Error('Unknown account ' + view.actor)
const actor = await ActorModel.loadByUrl(view.actor)
if (!actor) throw new Error('Unknown actor ' + view.actor)
await video.increment('views')