mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Improve SQL query for my special playlists
This commit is contained in:
parent
35f28e94c7
commit
ac0868bcc0
5 changed files with 64 additions and 43 deletions
|
@ -5,6 +5,7 @@ import { UserRole } from './user-role'
|
|||
import { NSFWPolicyType } from '../videos/nsfw-policy.type'
|
||||
import { UserNotificationSetting } from './user-notification-setting.model'
|
||||
import { UserAdminFlag } from './user-flag.model'
|
||||
import { VideoPlaylistType } from '@shared/models'
|
||||
|
||||
export interface User {
|
||||
id: number
|
||||
|
@ -47,6 +48,14 @@ export interface User {
|
|||
createdAt: Date
|
||||
}
|
||||
|
||||
export interface MyUser extends User {
|
||||
specialPlaylists: Partial<VideoPlaylist>[]
|
||||
export interface MyUserSpecialPlaylist {
|
||||
id: number
|
||||
name: string
|
||||
type: VideoPlaylistType
|
||||
}
|
||||
|
||||
export interface MyUser extends User {
|
||||
specialPlaylists: MyUserSpecialPlaylist[]
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue