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:
parent
85cd9bde5a
commit
7bc2917145
12 changed files with 161 additions and 34 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue