|
|
@@ -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
|