1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Add job queue hooks

This commit is contained in:
Chocobozzz 2022-08-02 15:29:00 +02:00
parent 7a9e420a02
commit 22df69fdec
No known key found for this signature in database
GPG key ID: 583A612D890159BE
12 changed files with 151 additions and 26 deletions

View file

@ -14,10 +14,9 @@ import {
RegisterServerSettingOptions,
ServerConfig,
ThumbnailType,
UserRole,
VideoBlacklistCreate
} from '@shared/models'
import { MVideoThumbnail } from '../models'
import { MUserDefault, MVideoThumbnail } from '../models'
import {
RegisterServerAuthExternalOptions,
RegisterServerAuthExternalResult,
@ -100,16 +99,10 @@ export type PeerTubeHelpers = {
user: {
// PeerTube >= 3.2
getAuthUser: (response: Response) => Promise<{
id?: string
username: string
email: string
blocked: boolean
role: UserRole
Account: {
name: string
}
} | undefined>
getAuthUser: (response: Response) => Promise<MUserDefault>
// PeerTube >= 4.3
loadById: (id: number) => Promise<MUserDefault>
}
}