|
|
@@ -113,7 +113,7 @@ activitySchema.statics.createByParameters = async function(parameters): Promise<
|
|
|
|
|
|
// When using this method, ensure that activity updates are allowed using ActivityService.shoudUpdateActivity
|
|
|
activitySchema.statics.updateByParameters = async function(activityId: string, parameters): Promise<ActivityDocument> {
|
|
|
- const activity = await this.findOneAndUpdate({ _id: activityId }, parameters, { new: true }) as unknown as ActivityDocument;
|
|
|
+ const activity = await this.findOneAndUpdate({ _id: activityId }, parameters, { new: true }) as ActivityDocument;
|
|
|
|
|
|
return activity;
|
|
|
};
|