2
0
Shun Miyazawa 4 жил өмнө
parent
commit
605d1bbf87

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

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