From c9f27d9881ea0cc05e953117380b4b22a1376d21 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 9 Feb 2022 13:44:02 +0100 Subject: Update server dependencies --- server/models/user/user.ts | 2 +- server/models/utils.ts | 2 +- server/models/video/video-file.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'server') diff --git a/server/models/user/user.ts b/server/models/user/user.ts index 4ad76e5bc..e7bf22806 100644 --- a/server/models/user/user.ts +++ b/server/models/user/user.ts @@ -623,7 +623,7 @@ export class UserModel extends Model>> { const query = { where: { [Op.or]: [ - where(fn('lower', col('username')), fn('lower', username)), + where(fn('lower', col('username')), '=', fn('lower', username)), { email } ] diff --git a/server/models/utils.ts b/server/models/utils.ts index 8c694d4e5..0950f5f32 100644 --- a/server/models/utils.ts +++ b/server/models/utils.ts @@ -1,5 +1,5 @@ import { literal, Op, OrderItem, Sequelize } from 'sequelize' -import { Col } from 'sequelize/types/lib/utils' +import { Col } from 'sequelize/types/utils' import validator from 'validator' type SortType = { sortModel: string, sortValue: string } diff --git a/server/models/video/video-file.ts b/server/models/video/video-file.ts index 6f03fae3a..1a9f4561a 100644 --- a/server/models/video/video-file.ts +++ b/server/models/video/video-file.ts @@ -18,7 +18,7 @@ import { Table, UpdatedAt } from 'sequelize-typescript' -import { Where } from 'sequelize/types/lib/utils' +import { Where } from 'sequelize/types/utils' import validator from 'validator' import { buildRemoteVideoBaseUrl } from '@server/helpers/activitypub' import { logger } from '@server/helpers/logger' -- cgit v1.2.3