From ac0868bcc0259d4ff14265d9ae403e10869a13aa Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 3 Jan 2020 14:17:57 +0100 Subject: Improve SQL query for my special playlists --- shared/models/users/user.model.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'shared/models/users') diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts index 1434dca81..328b69df6 100644 --- a/shared/models/users/user.model.ts +++ b/shared/models/users/user.model.ts @@ -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 MyUserSpecialPlaylist { + id: number + name: string + type: VideoPlaylistType +} + export interface MyUser extends User { - specialPlaylists: Partial[] + specialPlaylists: MyUserSpecialPlaylist[] } + + -- cgit v1.2.3