|
@@ -7,7 +7,7 @@ import mongoosePaginate from 'mongoose-paginate-v2';
|
|
|
import {
|
|
import {
|
|
|
IActivity, ISnapshot, AllSupportedAction, SupportedActionType,
|
|
IActivity, ISnapshot, AllSupportedAction, SupportedActionType,
|
|
|
AllSupportedTargetModels, SupportedTargetModelType,
|
|
AllSupportedTargetModels, SupportedTargetModelType,
|
|
|
- AllSupportedEventModel, SupportedEventModelType,
|
|
|
|
|
|
|
+ AllSupportedEventModels, SupportedEventModelType,
|
|
|
} from '~/interfaces/activity';
|
|
} from '~/interfaces/activity';
|
|
|
|
|
|
|
|
import loggerFactory from '../../utils/logger';
|
|
import loggerFactory from '../../utils/logger';
|
|
@@ -64,7 +64,7 @@ const activitySchema = new Schema<ActivityDocument, ActivityModel>({
|
|
|
},
|
|
},
|
|
|
eventModel: {
|
|
eventModel: {
|
|
|
type: String,
|
|
type: String,
|
|
|
- enum: AllSupportedEventModel,
|
|
|
|
|
|
|
+ enum: AllSupportedEventModels,
|
|
|
},
|
|
},
|
|
|
event: {
|
|
event: {
|
|
|
type: Schema.Types.ObjectId,
|
|
type: Schema.Types.ObjectId,
|