File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -992,6 +992,9 @@ class EventsFactory extends Factory {
992992 } ,
993993 { $set : { assignee : normalizedAssignee } }
994994 ) ;
995+ }
996+
997+ /**
995998 * Remove a single event and all related data (repetitions, daily events)
996999 *
9971000 * @param {string|ObjectId } eventId - id of the original event to remove
Original file line number Diff line number Diff line change @@ -199,6 +199,9 @@ module.exports = {
199199 success : ! ! result . acknowledged ,
200200 modifiedCount : result . modifiedCount || 0 ,
201201 } ;
202+ } ,
203+
204+ /**
202205 * Remove event and all related data (repetitions, daily events)
203206 *
204207 * @param {ResolverObj } _obj - resolver context
Original file line number Diff line number Diff line change @@ -591,11 +591,6 @@ extend type Mutation {
591591 bulkSetEventMarks(
592592 """
593593 Project id
594- Remove event and all related data (repetitions, daily events)
595- """
596- removeEvent(
597- """
598- ID of project event is related to
599594 """
600595 projectId: ID!
601596
@@ -614,6 +609,17 @@ extend type Mutation {
614609 """
615610 enabled: Boolean!
616611 ): BulkSetEventMarksResponse! @requireUserInWorkspace
612+
613+ """
614+ Remove event and all related data (repetitions, daily events)
615+ """
616+ removeEvent(
617+ """
618+ ID of project event is related to
619+ """
620+ projectId: ID!
621+
622+ """
617623 ID of the event to remove
618624 """
619625 eventId: ID!
You can’t perform that action at this time.
0 commit comments