X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fuser%2Fuser-notification-setting.ts;h=66e1d85b31fe10476e0d511f2b677144b4bc8fa9;hb=92e66e04f7f51d37b465cff442ce47f6d6d7cadd;hp=bee7d7851583a8bc8ea08178a7ec510e8f286e4d;hpb=8ee37c5f38b0f9b7e97239197d5590109c163250;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/user/user-notification-setting.ts b/server/models/user/user-notification-setting.ts index bee7d7851..66e1d85b3 100644 --- a/server/models/user/user-notification-setting.ts +++ b/server/models/user/user-notification-setting.ts @@ -14,7 +14,7 @@ import { } from 'sequelize-typescript' import { TokensCache } from '@server/lib/auth/tokens-cache' import { MNotificationSettingFormattable } from '@server/types/models' -import { AttributesOnly } from '@shared/core-utils' +import { AttributesOnly } from '@shared/typescript-utils' import { UserNotificationSetting, UserNotificationSettingValue } from '../../../shared/models/users/user-notification-setting.model' import { isUserNotificationSettingValid } from '../../helpers/custom-validators/user-notifications' import { throwIfNotValid } from '../utils' @@ -175,6 +175,15 @@ export class UserNotificationSettingModel extends Model throwIfNotValid(value, isUserNotificationSettingValid, 'myVideoStudioEditionFinished') + ) + @Column + myVideoStudioEditionFinished: UserNotificationSettingValue + @ForeignKey(() => UserModel) @Column userId: number @@ -216,6 +225,7 @@ export class UserNotificationSettingModel extends Model