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 --- server/typings/models/user/user.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'server/typings/models') diff --git a/server/typings/models/user/user.ts b/server/typings/models/user/user.ts index a2750adc7..6ac19c20b 100644 --- a/server/typings/models/user/user.ts +++ b/server/typings/models/user/user.ts @@ -12,6 +12,7 @@ import { import { MNotificationSetting, MNotificationSettingFormattable } from './user-notification-setting' import { AccountModel } from '@server/models/account/account' import { MChannelFormattable } from '../video/video-channels' +import { MVideoPlaylist } from '@server/typings/models' type Use = PickWith @@ -65,6 +66,13 @@ export type MUserDefault = MUser & // Format for API or AP object +type MAccountWithChannels = MAccountFormattable & PickWithOpt +type MAccountWithChannelsAndSpecialPlaylists = MAccountWithChannels & + PickWithOpt + export type MUserFormattable = MUserQuotaUsed & - Use<'Account', MAccountFormattable & PickWithOpt> & + Use<'Account', MAccountWithChannels> & PickWithOpt + +export type MMyUserFormattable = MUserFormattable & + Use<'Account', MAccountWithChannelsAndSpecialPlaylists> -- cgit v1.2.3