X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo%2Ftag.ts;h=7900e070dd8a0dfa4205859b20fb081fc1dc49ed;hb=3396e6534592865f184ee2db32a75957c42cb887;hp=c1eebe27f2950f27779ea225c9afd7ee77dabe59;hpb=96d52038788dda2f479362ce8e980f895369eec7;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/video/tag.ts b/server/models/video/tag.ts index c1eebe27f..7900e070d 100644 --- a/server/models/video/tag.ts +++ b/server/models/video/tag.ts @@ -1,7 +1,7 @@ import { col, fn, QueryTypes, Transaction } from 'sequelize' import { AllowNull, BelongsToMany, Column, CreatedAt, Is, Model, Table, UpdatedAt } from 'sequelize-typescript' import { MTag } from '@server/types/models' -import { AttributesOnly } from '@shared/core-utils' +import { AttributesOnly } from '@shared/typescript-utils' import { VideoPrivacy, VideoState } from '../../../shared/models/videos' import { isVideoTagValid } from '../../helpers/custom-validators/videos' import { throwIfNotValid } from '../utils' @@ -18,7 +18,7 @@ import { VideoTagModel } from './video-tag' }, { name: 'tag_lower_name', - fields: [ fn('lower', col('name')) ] as any // FIXME: typings + fields: [ fn('lower', col('name')) ] } ] })