From 1625fdc2f463b001abb712ece71484aba2bc806d Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 26 Apr 2018 20:22:51 +0900 Subject: [PATCH] :v: --- src/models/user.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/models/user.ts b/src/models/user.ts index 0621b6e736..a65fcc1878 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -37,7 +37,7 @@ export default User; type IUserBase = { _id: mongo.ObjectID; createdAt: Date; - deletedAt: Date; + deletedAt?: Date; followersCount: number; followingCount: number; name?: string; @@ -51,7 +51,6 @@ type IUserBase = { description: string; pinnedNoteId: mongo.ObjectID; isSuspended: boolean; - keywords: string[]; host: string; }; @@ -81,7 +80,7 @@ export interface ILocalUser extends IUserBase { isPro: boolean; twoFactorSecret: string; twoFactorEnabled: boolean; - twoFactorTempSecret: string; + twoFactorTempSecret?: string; clientSettings: any; settings: any; }