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:
parent
7a9e420a02
commit
22df69fdec
12 changed files with 151 additions and 26 deletions
|
@ -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>
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue