Shun Miyazawa 4 лет назад
Родитель
Сommit
605d1bbf87
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      packages/app/src/server/models/watcher.ts

+ 1 - 4
packages/app/src/server/models/watcher.ts

@@ -9,7 +9,6 @@ const STATUS_IGNORE = 'IGNORE';
 const STATUSES = [STATUS_WATCH, STATUS_IGNORE];
 const STATUSES = [STATUS_WATCH, STATUS_IGNORE];
 
 
 export interface IWatcher {
 export interface IWatcher {
-  _id: Types.ObjectId
   user: Types.ObjectId
   user: Types.ObjectId
   targetModel: string
   targetModel: string
   target: Types.ObjectId
   target: Types.ObjectId
@@ -20,9 +19,7 @@ export interface IWatcher {
   isIgnoring(): boolean
   isIgnoring(): boolean
 }
 }
 
 
-export interface WatcherDocument extends IWatcher, Document {
-  _id: Types.ObjectId
-}
+export interface WatcherDocument extends IWatcher, Document {}
 
 
 export interface WatcherModel extends Model<WatcherDocument> {
 export interface WatcherModel extends Model<WatcherDocument> {
   findByUserIdAndTargetId(userId: Types.ObjectId, targetId: Types.ObjectId): any
   findByUserIdAndTargetId(userId: Types.ObjectId, targetId: Types.ObjectId): any