From 53abc4c272be9ecc951274458d054dbaf86e594d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 31 Oct 2017 16:31:24 +0100 Subject: Upgrade server packages --- server/models/user/user.ts | 3 +-- server/models/video/video.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'server/models') diff --git a/server/models/user/user.ts b/server/models/user/user.ts index 3c625e450..c1e7abea6 100644 --- a/server/models/user/user.ts +++ b/server/models/user/user.ts @@ -1,7 +1,7 @@ import * as Sequelize from 'sequelize' import * as Promise from 'bluebird' -import { getSort } from '../utils' +import { getSort, addMethodsToModel } from '../utils' import { cryptPassword, comparePassword, @@ -13,7 +13,6 @@ import { } from '../../helpers' import { UserRight, USER_ROLE_LABELS, hasUserRight } from '../../../shared' -import { addMethodsToModel } from '../utils' import { UserInstance, UserAttributes, diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 2c1bd6b6e..02dde1726 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -1,12 +1,11 @@ import * as safeBuffer from 'safe-buffer' const Buffer = safeBuffer.Buffer import * as magnetUtil from 'magnet-uri' -import { map } from 'lodash' +import { map, maxBy, truncate } from 'lodash' import * as parseTorrent from 'parse-torrent' import { join } from 'path' import * as Sequelize from 'sequelize' import * as Promise from 'bluebird' -import { maxBy, truncate } from 'lodash' import { TagInstance } from './tag-interface' import { -- cgit v1.2.3