1
0
Fork 0
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:
Chocobozzz 2020-01-03 14:17:57 +01:00
parent 35f28e94c7
commit ac0868bcc0
No known key found for this signature in database
GPG key ID: 583A612D890159BE
5 changed files with 64 additions and 43 deletions

View file

@ -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[]
}