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

Fix jobs tests

This commit is contained in:
Chocobozzz 2018-09-19 17:42:16 +02:00
parent 993cef4b6e
commit f41d6aacdf
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 4 additions and 2 deletions

View file

@ -31,7 +31,7 @@ export function checkUserCanTerminateOwnershipChange (
videoChangeOwnership: VideoChangeOwnershipModel,
res: Response
): boolean {
if (videoChangeOwnership.NextOwner.userId === user.Account.userId) {
if (videoChangeOwnership.NextOwner.userId === user.id) {
return true
}