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