From 09979f8959425390b879bce22101a9bc061ae9a0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 5 Mar 2019 11:30:43 +0100 Subject: Refactor video playlist middlewares --- server/models/account/account.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/models/account') diff --git a/server/models/account/account.ts b/server/models/account/account.ts index 3fb766c8a..7cc40f631 100644 --- a/server/models/account/account.ts +++ b/server/models/account/account.ts @@ -10,7 +10,8 @@ import { ForeignKey, HasMany, Is, - Model, Scopes, + Model, + Scopes, Table, UpdatedAt } from 'sequelize-typescript' @@ -26,7 +27,6 @@ import { VideoCommentModel } from '../video/video-comment' import { UserModel } from './user' import { CONFIG } from '../../initializers' import { AvatarModel } from '../avatar/avatar' -import { WhereOptions } from 'sequelize' import { VideoPlaylistModel } from '../video/video-playlist' export enum ScopeNames { @@ -42,7 +42,7 @@ export enum ScopeNames { ] }) @Scopes({ - [ ScopeNames.SUMMARY ]: (whereActor?: WhereOptions) => { + [ ScopeNames.SUMMARY ]: (whereActor?: Sequelize.WhereOptions) => { return { attributes: [ 'id', 'name' ], include: [ -- cgit v1.2.3