From 690bb8f9f3413147a4f71d5ff0a3cd8170a94ce3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 17 Aug 2022 15:36:03 +0200 Subject: Prefer using Object.values --- server/models/account/account-video-rate.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'server/models/account/account-video-rate.ts') diff --git a/server/models/account/account-video-rate.ts b/server/models/account/account-video-rate.ts index 5c7d9cfc0..7afc907da 100644 --- a/server/models/account/account-video-rate.ts +++ b/server/models/account/account-video-rate.ts @@ -1,4 +1,3 @@ -import { values } from 'lodash' import { FindOptions, Op, QueryTypes, Transaction } from 'sequelize' import { AllowNull, BelongsTo, Column, CreatedAt, DataType, ForeignKey, Is, Model, Table, UpdatedAt } from 'sequelize-typescript' import { @@ -45,7 +44,7 @@ import { AccountModel } from './account' export class AccountVideoRateModel extends Model>> { @AllowNull(false) - @Column(DataType.ENUM(...values(VIDEO_RATE_TYPES))) + @Column(DataType.ENUM(...Object.values(VIDEO_RATE_TYPES))) type: VideoRateType @AllowNull(false) -- cgit v1.2.3